Files
effectcraft/crates/engine
vangel76 714ff82fd6 Viewer: a Shift-constrained drag snaps only along its axis
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
2026-11-07 15:35:14 +01:00
..
2026-10-29 20:31:32 +01:00