Skip to content

Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.

fix(timeline): the scrub release carries its ruler second too

EtienneLescot8866d056efa4
diff --git a/src/components/ai-edition/v4/V4Timeline.tsx b/src/components/ai-edition/v4/V4Timeline.tsx
index 8b202fca8..b97f24ab7 100644
--- a/src/components/ai-edition/v4/V4Timeline.tsx
+++ b/src/components/ai-edition/v4/V4Timeline.tsx
@@ -960,8 +960,12 @@ export function V4Timeline({
rafSeekRef.current = 0;
}
if (pendingSeekTimeRef.current !== null) {
- setCurrentTime(pendingSeekTimeRef.current);
+ // The RULER second goes with it, or releasing over an insertion drops the
+ // only coordinate that could name where the pointer was: the raw second
+ // alone lands on the insertion's near edge, which is the snap-back.
+ setCurrentTime(pendingSeekTimeRef.current, pendingSeekRulerRef.current ?? undefined);
pendingSeekTimeRef.current = null;
+ pendingSeekRulerRef.current = null;
}
setScrubbingTimeSec(null);
setScrubRulerSec(null);