ls1intum / Apollon

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

Disorienting Camera Movement on Large Diagrams #363

Open loreanvictor opened 3 weeks ago

loreanvictor commented 3 weeks ago

Describe the bug

The camera can't move properly when elements go too far right in larger diagrams. It jumps in the other direction, causing disorientation and confusion.

To Reproduce

  1. Create a diagram (e.g. on Apollon Standalone),
  2. Create some elements
  3. Move one element outside of the screen from the right edge
  4. The camera jumps left

Expected behavior

When I move the element, the camera either stays steady or it follows the action, not moving in the opposite direction.

Screenshots

ScreenRecording2024-06-24at09 20 26-ezgif com-video-to-gif-converter

Environment

I reproduced this on Chrome on Apollon Standalone, but I highly suspect this behaviour can be easily reproduced anywhere.