diff --git a/lib/network/modules/InteractionHandler.js b/lib/network/modules/InteractionHandler.js index 7cc8a1ed05..28957e5287 100644 --- a/lib/network/modules/InteractionHandler.js +++ b/lib/network/modules/InteractionHandler.js @@ -296,8 +296,7 @@ class InteractionHandler { this.drag.nodeId = node.id; // select the clicked node if not yet selected if (node.isSelected() === false) { - this.selectionHandler.unselectAll(); - this.selectionHandler.selectObject(node); + this.selectionHandler.setSelection({ nodes: [node.id] }); } // after select to contain the node