From ee9393ebcfa26fbd27aebdf5e395d30320cb6440 Mon Sep 17 00:00:00 2001 From: dawn <90008@klbr.net> Date: Tue, 17 Nov 2026 20:44:46 +0300 Subject: [PATCH] web: take the tethers' audit at a frame, after the scroll events a jump wakes them with Signed-off-by: dawn <90008@klbr.net> --- web/src/lib/Tethers.svelte | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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 = [ -- knotmirror 0.0.1