Files
hyperframes/packages
Miguel Ángel eea73b3107 fix(studio): moving and nudging an element works in a sealed preview (#8263)
* fix(studio): arrow keys nudge the selected element in a sealed preview

A sealed preview's selection is a stand-in that is never in the page, so the nudge's check that the element is still
there refused every key and nothing moved. It now uses the same check the selection publisher uses, which keeps a
sealed selection until it is replaced.

* fix(studio): a sealed nudge moves an animated element by its tween and saves where it was drawn

A sealed preview's selected element is a stand-in with no animation or translate of its own, so a nudge guessed both from an empty page: it wrote a plain translate over the stylesheet's and the element landed elsewhere after a reload. The nudge now waits for the frame's gesture-start read, the one a press uses, and keys pressed meanwhile join the burst.

* test(studio): pass the nudge its frame refs in the undo paint test

* fix(studio): a sealed move on GSAP's route lands where it was drawn, not twice as far

When a move ends, the sealed frame kept the translate the gesture drew. A move on GSAP's route saves the new position as GSAP's x and y, so the layer then showed the move twice until the frame loaded again. The frame now drops the drawn translate for those moves; a move saved as a plain translate still keeps it.

* refactor(studio): split the sealed nudge key handler so each step reads on its own

* fix(studio): a sealed nudge waiting on its frame gives way to a drag, selection or other edit

* fix(studio): an arrow pressed while a canvas press waits on the preview does not start a nudge

* fix(studio): a sealed resize on GSAP's route keeps the size it drew when it ends

* refactor(studio): name the size-keeping draft end instead of commenting it

* fix(studio): a sealed resize saved as GSAP scale drops the size it drew when it ends

* fix(studio): a sealed resize keeps its drawn size unless its save wrote the size as scale

* fix(studio): a whole-tween resize of a width/height tween says it saved the size, not scale

* test(studio): cover the resize writer's held-size and unnamed-element returns

* test(studio): reach the resize writer's no-selector refusal with an element no selector addresses
2026-11-22 05:40:06 +00:00
..
2026-11-22 01:40:53 +00:00
2026-11-22 01:40:53 +00:00
2026-11-22 01:40:53 +00:00
2026-11-22 01:40:53 +00:00
2026-11-22 01:40:53 +00:00
2026-11-22 01:40:53 +00:00
2026-11-22 01:40:53 +00:00
2026-11-22 01:40:53 +00:00
2026-11-22 01:40:53 +00:00