mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-16 06:19:21 +00:00
Root cause of clips overlapping on one track: the editor placed clips in NORMALIZED display-track space but persisted only the dragged clip's index, so other clips' unchanged raw source indices collided on reload (raw-vs-normalized). Fix (persist-on-edit): on a lane change / insert, apply the move, re-normalizeToZones the whole set, and persist EVERY clip atomically so the source matches the display. Inserts now use a fractional track + normalize (replaces buildTrackInsert, now unused). Pure time-moves still persist just the dragged clip.