mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-03 12:17:03 +00:00
A canvas drag stores the element position as a global gsap.set above the timeline declaration. A resize that followed it inserted its tl.set right after that line, so the saved script referenced the timeline before it was declared and every reload and render threw a ReferenceError. Both GSAP writers now bound the "after the last statement" anchor by the timeline declaration, whatever the timeline variable is named. A drag or a resize on its own writes the same bytes as before.