Closed RuoyuDeng closed 1 year ago
This issue occurs when trying to auto-scroll while dragging with a selection that exceeds the size of the viewport (area visible in a diagram tab). The auto-scroll feature attempts to always show the entire selection in the direction of the drag (e.g., dragging right, the right parts of the bounds). The calculations are correct but the user experience is not great.
To mitigate the issue, this fix implements two changes:
Description When one creates a class diagram with a package node that contains at least three children nodes, this bug will show up. The width of the package node is wider than what can be displayed on canvas. (e.g, the display zone has width 1000, and the package node has width 2000). The full content in the package can not be seen without scrolling the slide bar on the bottom. Let there be class node C1,C2,C3 in the package node. C1,C3 are located at the beginning of the left and right side of the package node and C1,C3 can not be displayed at the same time. After setting up such case, when one tries to move C2, it starts flying all around the places.
Steps to reproduce
Screenshots Before Zoom Out:
After Zoom Out:
Configuration
Additional information Zoom out can resolve such a problem because if we can see the left and right boundary of the package node at the same time, the renderer can make right decision about what to do when we move nodes around the place.