Skip to content

Moving node outside graph area is not possible #194

@avshenuk

Description

@avshenuk

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions