-
Notifications
You must be signed in to change notification settings - Fork 87
Description
When moving a node outside a graph area, the node simply stays on the boundary and not moving further. It re-appears though in the position where the mouse returns back to the area. So basically jumps from one position to another one.
The reason seems to be that MouseTool collects mouse events only from the root VNode and not the whole document/page.
This prevents smooth interactions with the graph and doesn't seem possible to override from the outside as this is core behavior of mouse events processing in Sprotty.
It also seems quite nontrivial to fix either, as the events collection is generic across modules and depends on them being attached to VNode and not to the whole document (and perhaps Sprotty is running NOT only in browsers?).
So if you decide to not try to fix this, could you please suggest some workarounds?
P.S. There is also certain logic determining the element being moved which will most likely stop working due to the fact that the node is detached when moving outside the graph area. Guess this is fixable by adding some logic to isVisible in the views though.