mirror of
https://github.com/storytold/effectcraft.git
synced 2026-11-15 06:42:31 +00:00
A layer Move, path-vertex drag or Pan Behind drag held to one axis with Shift snapped with the full 2D rule, so a point target (another layer's corner or midpoint, a path vertex, the comp centre) gave the snap both of its coordinates and pulled the dragged feature off the axis. The new engine function viewer::snap_along snaps only the free coordinate: a point acts as a line through it across the drag, reaching it within the tolerance on each axis; lines along the drag are left out. A point hit reports the point and the short line from it to where the feature landed, so the viewer draws the alignment. The viewer's SnapQuery carries the axis one_axis picks (drag_axis); Move, Vertices and Pan Behind pass it. snap() itself is unchanged. Fixes #3229