From 04f304908ad087c0f17abb4b17504fbb362060d4 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Tue, 18 Feb 2020 10:11:08 +0100 Subject: [PATCH] Dragging improved --- ChartingSpace/EdgeEditor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ChartingSpace/EdgeEditor.js b/ChartingSpace/EdgeEditor.js index ccffbfc4c..f40dffd2f 100644 --- a/ChartingSpace/EdgeEditor.js +++ b/ChartingSpace/EdgeEditor.js @@ -143,14 +143,14 @@ function newEdgeEditor () { switch (whereIsMouseOver) { case 'center': { switch (buttonUsedForDragging) { - case 'left mouse button': { + case 'right mouse button': { /* This is equivalent to drag the whole Time Machine, so we will apply the translation received onto the Time Machine container. */ thisObject.container.parentContainer.frame.position.x = thisObject.container.parentContainer.frame.position.x + dragVector.x thisObject.container.parentContainer.frame.position.y = thisObject.container.parentContainer.frame.position.y + dragVector.y thisObject.container.parentContainer.eventHandler.raiseEvent('onDisplace') break } - case 'right mouse button': { + case 'left mouse button': { let point = { x: -dragVector.x, y: -dragVector.y