prmr / JetUML

A desktop application for fast UML diagramming.
GNU General Public License v3.0
625 stars 125 forks source link

bug fix issue #445 #451

Closed lberardelli closed 2 years ago

lberardelli commented 2 years ago

Took the path of least resistance to fix this bug. Yet, this fix is somewhat incomplete. In DiagramCanvasController::moveSelection(Point) it would be better to consider the case where dragging a nested node would not affect one or more of the boundaries of the enclosing node (e.g having 2 nested nodes in a package node and dragging only one of them). In this case, we would not have to check the enclosing boundary for being out of canvas range. Incidentally, this creates an upper bound on the moving speed of a node when the enclosing boundary is close to the canvas edge.