mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-16 06:19:21 +00:00
Pressing Escape mid-gesture (clip move, trim, or pending blocked-drag) cancels it: no commit, no undo entry. Previews live only in the drag/ resize state — the store mutates only in the pointerup commit path — so clearing the state restores the pre-drag timeline; the auto-scroll RAF is stopped and the click from the eventual pointerup is suppressed once so it can't reselect. Decision extracted as pure resolveTimelineDragEscape (unit-tested: cancels for each gesture kind, click suppressed only past the drag threshold, other keys ignored).