ZMYaro / paintz

A simple drawing app that runs in a web browser, designed to be an MS Paint substitute for Chromebooks and other Chrome OS devices. PaintZ is free, but please consider supporting development at https://ko-fi.com/ZMYaro or https://patreon.com/ZMYaro.
https://paintz.app
53 stars 11 forks source link

Curve endpoints set while holding Shift move when control points are placed #254

Closed ZMYaro closed 2 years ago

ZMYaro commented 2 years ago

Describe the bug When a perfectly horizontal, vertical, or 45° diagonal set of curve start-/endpoints is placed by holding Shift, the actual cursor end point is what actually gets saved, so the end point jumps when the first control point starts getting placed.

Steps to reproduce the behavior

  1. Select the curve tool.
  2. Hold Shift and draw a perfectly horizontal, vertical, or 45° diagonal line where the cursor is distinctly off the line.
  3. Start placing the first control point.

Expected behavior The line endpoint remains where it was.

Actual behavior The line endpoint moves to where the cursor was, as though Shift had not been held.

ZMYaro commented 2 years ago

Fixed in https://github.com/ZMYaro/paintz/commit/73ef3603b7c89be8b5e2787af5d77a5fd985c674.