ls1intum / Apollon

UML Modeling Editor written in React
https://apollon-library.readthedocs.io
MIT License
61 stars 21 forks source link

Releasing mouse button outside grid doesn't remove selection box #366

Open magaupp opened 2 weeks ago

magaupp commented 2 weeks ago

Describe the bug

Dragging the selection box and letting it go outside the grid does not finish the selection action.

To Reproduce

  1. Create a new diagram
  2. Click and hold on any free location on the grid
  3. Move the cursor to the left off the grid
  4. Let go of the mouse button
  5. The selection box still follows the mouse cursor

Expected behavior

The selection box should disappear once the mouse button is let go.

Screenshots

Environment

 - OS: Arch Linux
 - Browser Chromium
 - Version: 126.0.6478.114

Additional context

Output in Web Console

  [REPLACE THIS WITH YOUR INFORMATION]