ls1intum / Apollon

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

Inconsistent edge creation #365

Open magaupp opened 2 weeks ago

magaupp commented 2 weeks ago

Describe the bug

Sometimes while an edge is hovered over an element the cursor changes to the default arrow. If the edge is dropped on the element while the default cursor is shown the edge is not connected. This happens more often on Firefox, but it is also possible on Chrome.

This can also happen if the edge is dragged on the element quickly.

To Reproduce

  1. Create a new ClassDiagram
  2. Add 2 Class elements
  3. Click and hold at edge of one Class element to create a new edge
  4. Hover the cursor over the other Class element and move around until the cursor changes from the move icon to the default arrow icon
  5. Let the mouse button go
  6. The edge was not created

Expected behavior

An edge should consistently be created wherever the mouse button is let go on the element.

Environment

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