Skip to content

Nodes currently draggable while Context Menu is open #109

@SpiritSeal

Description

@SpiritSeal

The scope of this includes the node source of context menu as well. This is causing weird behaviour, such as where when clicking a menu option like a regular user, you are also triggering the drag of a same or different node at the same time.

Because the NodeDrag functions are stored within the MindMapSimulation component, and not the Bubble one where everything else is, multiple onClick/ onMouseDown events are being triggered at the same time. And unlike the SelectNode function also within Bubble, this functionality cannot simply be disabled while the Context Menu is open due to the component separation.

Potential Solutions

  1. (Preferable) Refactor the NodeDrag functionality to be scoped to the Bubble component.
  2. Create a uplinked handler from the child Bubble to the parent MindMapSimulation component so that MMS knows when any child has their context menu open.

Metadata

Metadata

Assignees

Labels

Low PriorityNot very important, other things firstbugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions