Skip to content

Line Tool: Only lock angle with Ctrl after drag has started#3773

Open
JustJ01 wants to merge 2 commits intoGraphiteEditor:masterfrom
JustJ01:fix-line-tool
Open

Line Tool: Only lock angle with Ctrl after drag has started#3773
JustJ01 wants to merge 2 commits intoGraphiteEditor:masterfrom
JustJ01:fix-line-tool

Conversation

@JustJ01
Copy link
Contributor

@JustJ01 JustJ01 commented Feb 16, 2026

Closes #3771

Implemented the fix so Ctrl only angle locks the Line tool after drag has already started.

Applies to both drawing a new line and dragging an existing line endpoint.

Added per-drag eligibility tracking for lock-angle and reset it at drag lifecycle boundaries.

Also updated tests:

  1. test_line_tool_ctrl_before_drag_start_does_not_lock_angle
  2. test_line_tool_ctrl_pressed_during_drag_locks_angle

@JustJ01
Copy link
Contributor Author

JustJ01 commented Feb 16, 2026

@Keavon @timon-schelling @adamgerhant pls review!

@timon-schelling
Copy link
Member

Thanks for the contribution. Tagging us will not get the PR reviewed quicker and just adds noise. We see open PRs and will review them when we find the time.

@JustJ01 JustJ01 marked this pull request as draft February 17, 2026 02:35
@JustJ01 JustJ01 marked this pull request as ready for review February 17, 2026 02:47
@JustJ01
Copy link
Contributor Author

JustJ01 commented Feb 17, 2026

Sorry for unnecessary tagging , won't do it again.

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.

Line tool needs Ctrl to lock angle only after drag has begun

2 participants

Comments