mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-17 15:24:19 +00:00
When dragging GSAP-animated elements in the preview, position changes now write to the GSAP script instead of CSS inline styles that GSAP overwrites on the next seek: - Flat tweens: updates x/y properties directly via update-property mutation - Keyframed tweens: adds/updates a keyframe at the current playhead percentage with the new x/y values (auto-keyframing) - Studio offset is cleared after the GSAP commit since GSAP handles position after the soft-reload The intercept point is handleDomPathOffsetCommit, which checks for GSAP animations with position properties before falling through to the standard CSS path. GSAP position helpers live in gsapDragCommit.ts as pure functions to keep useDomEditCommits.ts under the 600-line limit.