diff --git a/web/src/lib/Tethers.svelte b/web/src/lib/Tethers.svelte index ea81ae57c..31ba7ad1b 100644 --- a/web/src/lib/Tethers.svelte +++ b/web/src/lib/Tethers.svelte @@ -671,8 +671,17 @@ frame = requestAnimationFrame(tick); }; // The kit sets the flag: a changed frame found at rest is a line that went stale. + // At a frame, after its scroll events: a jump set by a script wakes the + // tethers only when its scroll event fires, and a sample between the two + // would read the jump as a line gone stale. const audited = (window as any).__albedoAudit - ? setInterval(() => !frame && still >= SETTLE && draw(true), 500) + ? setInterval( + () => + !frame && + still >= SETTLE && + requestAnimationFrame(() => !frame && draw(true)), + 500, + ) : 0; const move = () => tying.note && wake(); const wakers = [