Skip to content

Added snap dragging to the Gradient gizmo#15

Open
jackfruitdog wants to merge 1 commit intoswe-productivity:masterfrom
jackfruitdog:feat-snapping-for-gradient-gizmo
Open

Added snap dragging to the Gradient gizmo#15
jackfruitdog wants to merge 1 commit intoswe-productivity:masterfrom
jackfruitdog:feat-snapping-for-gradient-gizmo

Conversation

@jackfruitdog
Copy link

@jackfruitdog jackfruitdog commented Feb 17, 2026

Closes #5. This will not apply when a user is dragging the gradient gizmo while holding shift.

Recording 2026-02-17 at 11 35 01

@jackfruitdog jackfruitdog force-pushed the feat-snapping-for-gradient-gizmo branch from 78018df to 9c08155 Compare February 17, 2026 23:55
@timon-schelling timon-schelling self-assigned this Feb 18, 2026
@timon-schelling
Copy link
Collaborator

This is not complete, the snapping needs to be similar to how snapping with the line tool works, including all overlays that are shown in that case.
The current implementation seems to only snap to the shapes edge not the center point or other useful points or lines.

@jackfruitdog
Copy link
Author

This is not complete, the snapping needs to be similar to how snapping with the line tool works, including all overlays that are shown in that case. The current implementation seems to only snap to the shapes edge not the center point or other useful points or lines.

Understood.

@jackfruitdog jackfruitdog force-pushed the feat-snapping-for-gradient-gizmo branch from 9c08155 to e3aadec Compare February 23, 2026 16:26
@jackfruitdog
Copy link
Author

This is not complete, the snapping needs to be similar to how snapping with the line tool works, including all overlays that are shown in that case. The current implementation seems to only snap to the shapes edge not the center point or other useful points or lines.

I added the overlays and more snap points.

Recording 2026-02-23 at 10 21 28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Snapping for Gradient gizmo

2 participants