Description:
I've encountered a bug related to the drag & drop functionality on the canvas. Specifically, when I start dragging an object and then move the cursor outside the canvas while still holding the mouse button down, the drag operation does not terminate as expected.
Steps to reproduce:
- Start a drag on the canvas.
- Continue dragging the object outside of the canvas.
- Release the mouse button while the cursor is still outside the canvas.
- Move the cursor back inside the canvas.
Expected behavior:
When the mouse button is released outside the canvas, the drag operation should terminate. When the cursor re-enters the canvas, it should not be in a dragging state.
Actual behavior:
After performing the steps above, when the cursor re-enters the canvas, it is still in a dragging state as if the mouse button was never released.
Environment:
- Browser: Chrome Version 119.0.6045.124