Skip to content

fix: Line tool diagonal snapping and angle - #198

Open
StickmanRed wants to merge 1 commit into
developmentfrom
StickmanRed-line-tool-fixes
Open

fix: Line tool diagonal snapping and angle#198
StickmanRed wants to merge 1 commit into
developmentfrom
StickmanRed-line-tool-fixes

Conversation

@StickmanRed

Copy link
Copy Markdown
Collaborator

Description

Fixes two issues in the Line tool: line snapping not working when drawing a diagonal line, and angle to draw diagonal lines being slightly off.

Testing

  1. Open the Line tool and draw a line on the canvas.
  2. Hold Shift to draw another line diagonally, and snap to a vertex on the first line. When snapping, the line's endpoint should not move with the mouse.
  3. Move the endpoint to a 22.5 degree angle, halfway between diagonal and horizontal/vertical. The line should switch between diagonal and horizontal/vertical around this halfway angle.
Line.tool.mp4

@StickmanRed StickmanRed added the bug Something isn't working label Aug 21, 2026
@StickmanRed StickmanRed linked an issue Aug 21, 2026 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Straight Lines with Line Tool

1 participant