Skip to content

Comments

added feature to snap at midpoint while using path tool#3766

Open
krVatsal wants to merge 2 commits intoGraphiteEditor:masterfrom
krVatsal:shift-key-snaps-lines-from-middle-for-shpes
Open

added feature to snap at midpoint while using path tool#3766
krVatsal wants to merge 2 commits intoGraphiteEditor:masterfrom
krVatsal:shift-key-snaps-lines-from-middle-for-shpes

Conversation

@krVatsal
Copy link
Contributor

fixes #3760

Now when we use path tool to snap any shape(while holding shift) then it snaps from midpoint irrespective of wherever we drag from.

@krVatsal
Copy link
Contributor Author

krVatsal commented Feb 15, 2026

One small question, does the axes are meant to be at drag point or at the midpoint?

@Annonnymmousss
Copy link
Contributor

Midpoint of the segment.

@Keavon
Copy link
Member

Keavon commented Feb 16, 2026

!build

@github-actions
Copy link

📦 Build Complete for b3c30f4
https://63007abd.graphite.pages.dev

@Keavon
Copy link
Member

Keavon commented Feb 17, 2026

This is behaving correctly except for the fact that we want the X and Y snapping lines to be centered through the initial position of the midpoint of the Bezier segment being molded, rather than the point at which the pointer began dragging the molded segment.

@krVatsal
Copy link
Contributor Author

Yepp, was working on that part only. Almost done with the work I will push the new commit with that change.

@krVatsal krVatsal marked this pull request as ready for review February 17, 2026 06:15
@Keavon Keavon force-pushed the shift-key-snaps-lines-from-middle-for-shpes branch from d2413a4 to 183ab31 Compare February 23, 2026 05:59
@Keavon
Copy link
Member

Keavon commented Feb 23, 2026

!build (Run ID 22294708633)

@github-actions
Copy link

📦 Build Complete for 183ab31
https://f56d9453.graphite.pages.dev

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.

Segment molding Shift key X/Y constraint

3 participants