Files
hyperframes/packages
Miguel Angel Simon Sierra a8f7cc12f0 fix(studio): stop snapping from moving a selection you have not dragged yet
Your log caught it on the first frame of the drag: pointer "0,0", applied "4,-3",
and all four members jumped 12,-8 composition px before the pointer had moved at
all. An element resting within the 6px snap threshold of a guide is already
snappable, so the snap computed on frame one closes that gap immediately —
picking the selection up moves it.

Snapping now sits out until the gesture has travelled the same 4px a drag needs
to count as a drag rather than a click, on both the group and single-element
paths. Nothing below that distance moves anything, and a real drag snaps exactly
as before.

The test builds a box resting 4px from a guide and asserts the ungated call still
returns dx 4 — the very displacement from your log — while the gated one returns
0 for a pointer that has not moved.
2026-08-08 14:23:20 -07:00
..
2026-08-07 19:50:48 -07:00
2026-08-07 19:50:48 -07:00
2026-08-07 19:50:48 -07:00
2026-08-07 19:50:48 -07:00
2026-08-07 19:50:48 -07:00
2026-08-07 19:50:48 -07:00
2026-08-07 19:50:48 -07:00
2026-08-07 19:50:48 -07:00
2026-08-07 19:50:48 -07:00