Skip to content

Conversation

@krVatsal
Copy link
Contributor

Closes the active pen path when the user intentionally double-clicks.

Closes #3219

@timon-schelling
Copy link
Member

!build

@github-actions
Copy link

📦 Build Complete for 3fbcaf9
https://db70eac1.graphite.pages.dev

@krVatsal
Copy link
Contributor Author

Do i need to do something in order to get this pr reviewed?

@timon-schelling
Copy link
Member

No, everything fine we're just a bit behind on PRs, situation will improve when Keavon is back from vacation. Thanks for contributing :)

@krVatsal
Copy link
Contributor Author

Sure, thanks!

@timon-schelling
Copy link
Member

!build

@timon-schelling
Copy link
Member

Fails to compile now.

@timon-schelling timon-schelling marked this pull request as draft November 17, 2025 17:41
@krVatsal
Copy link
Contributor Author

Fails to compile now.

The conflicts are resolved , can you review this one also.

@timon-schelling
Copy link
Member

!build

@timon-schelling
Copy link
Member

!build

@github-actions
Copy link

📦 Build Complete for e4a80c5
https://31dfa54b.graphite.pages.dev

@timon-schelling
Copy link
Member

2026-01-13.18-10-26.mp4

Doesn't seem to work as expected.

@timon-schelling timon-schelling marked this pull request as draft January 13, 2026 18:13
@krVatsal
Copy link
Contributor Author

Can you clarify what is the desired output, drawing should end without closing the path or it should close the the shape on double click?

@timon-schelling
Copy link
Member

Closing the path, see the issue you linked.

…ool' of https://github.com/krVatsal/Graphite into add-feature-to-stop-drawing-on-double-click-using-pen-tool
@krVatsal krVatsal changed the title Added feature to stop drawing when double clicked using pen tool Added feature to close shape path when double clicked using pen tool Jan 14, 2026
@krVatsal krVatsal marked this pull request as ready for review January 14, 2026 16:50
@krVatsal
Copy link
Contributor Author

Closing the path, see the issue you linked.

Can you review it now?

@timon-schelling
Copy link
Member

!build

@github-actions
Copy link

📦 Build Complete for aa9da44
https://ab94894d.graphite.pages.dev

@timon-schelling timon-schelling changed the title Added feature to close shape path when double clicked using pen tool Close path with double clicked using pen tool Jan 25, 2026
@timon-schelling
Copy link
Member

LGTM, @0HyperCube any comments?

Copy link
Contributor

@0HyperCube 0HyperCube left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems good.

I guess you could have bound an event for DoubleClick in the input_mappings.rs but that would confuse the logic since it happens only on mouse up.

@Keavon Keavon changed the title Close path with double clicked using pen tool Make the Pen tool close a path by double-clicking Jan 26, 2026
@Keavon
Copy link
Member

Keavon commented Jan 26, 2026

Yeah, from a behavioral perspective, this needs to not close the path upon releasing the mouse from a fast click-click-drag (double-clicking the mouse down part, but dragging during the second mouse down). Currently, that scenario results in unexpected behavior after mouse up.

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.

Close Pen Tool path with double click

4 participants