bitview: small fixes

This commit is contained in:
nym21
2025-08-30 12:11:15 +02:00
parent e106d30852
commit 5ba7ce5b7c
4 changed files with 19 additions and 17 deletions

View File

@@ -127,11 +127,10 @@ export function init({
}
chart.inner.timeScale().subscribeVisibleLogicalRangeChange(
utils.debounce((t) => {
if (t) {
from.set(t.from);
to.set(t.to);
}
utils.throttle((t) => {
if (!t) return;
from.set(t.from);
to.set(t.to);
}),
);