Undo corruption when drag operation ends as cursor leaves window
Summary:
Dragging an object around the canvas and releasing the mouse button very quickly after the cursor leaves the window leaves the object moved on the canvas but with no undoable operation in the undo history.
Steps to reproduce:
I recorded a video:
https://www.youtube.com/watch?v=7tbhUBJYhCk
Reproduction steps:
- Create a test document with a solid ellipse. Save and quit.
- Re-open the document.
- Display the undo history panel.
- Click and drag the object, moving it around the canvas.
- Simultaneously fling the mouse outside of the window and release the mouse button.
- Attempt to undo with ctrl+Z.
- If unsuccessful, repeat from clicking and dragging the object.
What happened?
About half of the time, the object will move towards the edge of the window and stop short. No action will be added to the undo history. The document and the undo history now are in a confused state that doesn't behave entirely consistently. Upon attempting to undo, nothing will happen.
What should have happened?
The object should have moved, but an action should appear in the undo history, and undoing should return the object to its original position.
Version info
Inkscape 1.2-dev (fd6f24e, 2021-12-14)
Running on Microsoft Windows 10 Home Version 20H2, build 19042.1348
Edited by Annette (Weeble)