From 8c91d37d5609ed059b11e23ce339bb8235aff97e Mon Sep 17 00:00:00 2001 From: DavidIreland1 <32119570+DavidIreland1@users.noreply.github.com> Date: Fri, 8 May 2020 23:33:44 +1000 Subject: [PATCH] fix(manipulation): panning in add edge mode (#692) --- lib/network/modules/ManipulationSystem.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/network/modules/ManipulationSystem.js b/lib/network/modules/ManipulationSystem.js index 8058445f93..f124b600f7 100644 --- a/lib/network/modules/ManipulationSystem.js +++ b/lib/network/modules/ManipulationSystem.js @@ -1017,6 +1017,9 @@ class ManipulationSystem { this.lastTouch = this.body.functions.getPointer(event.center); this.lastTouch.translation = util.extend({},this.body.view.translation); // copy the object + this.interactionHandler.drag.pointer = this.lastTouch; // Drag pointer is not updated when adding edges + this.interactionHandler.drag.translation = this.lastTouch.translation; + let pointer = this.lastTouch; let node = this.selectionHandler.getNodeAt(pointer);