Jerrylum / path.jerryio

The best path editor in VRC for designing skills routes and generating path files.
https://path.jerryio.com
GNU General Public License v3.0
32 stars 14 forks source link

:bug: Crash When Dragging a Control While Creating a New File #21

Closed Jerrylum closed 9 months ago

Jerrylum commented 9 months ago

Describe the bug Throw error when dragging a control on the canvas but is then deleted in the user interface.

To Reproduce Steps to reproduce the behavior:

  1. Create a new path by left-clicking on the field
  2. Mouse down to one of the control points and drag it
  3. Don't release the mouse, press Ctrl + P to open the "Unsaved Changes" confirmation dialog
  4. Press N
  5. See error in the console

Expected behavior The control dragging action should be stopped. A new format is then initialized and the field should be cleared without any errors in the console.

Screenshots

image

Desktop (please complete the following information):

Other Devices (please complete the following information):

Additional context None