From 49bce8c82987f5e2c1fe4102b2f80d28a45129cb Mon Sep 17 00:00:00 2001 From: mvdbeek Date: Sun, 4 Sep 2022 13:40:32 +0200 Subject: [PATCH] Minor cleanup, activate node after dragging only --- .../src/components/Workflow/Editor/Draggable.vue | 15 +-------------- client/src/components/Workflow/Editor/Node.vue | 2 +- .../components/Workflow/Editor/WorkflowGraph.vue | 9 --------- 3 files changed, 2 insertions(+), 24 deletions(-) diff --git a/client/src/components/Workflow/Editor/Draggable.vue b/client/src/components/Workflow/Editor/Draggable.vue index 133c74a2c9f..a7858a792c1 100644 --- a/client/src/components/Workflow/Editor/Draggable.vue +++ b/client/src/components/Workflow/Editor/Draggable.vue @@ -23,32 +23,18 @@ export default { type: Object, required: false, }, - zoom: { - type: Number, - default: 1, - required: false, - }, }, data() { return { mouseDown: {}, - _localPosition: {}, }; }, computed: { draggableOptions() { return { - defaultPosition: null, mouseDown: this.stopPropagation, }; }, - localPosition() { - if (this.position) { - return this.position; - } else { - return this._localPosition; - } - }, }, methods: { onDragStart(e) { @@ -59,6 +45,7 @@ export default { console.log("stopDragging"); e.stopPropagation(); this.$emit("stopDragging"); + this.$emit("mouseup"); }, stopPropagation(e) { e.stopPropagation(); diff --git a/client/src/components/Workflow/Editor/Node.vue b/client/src/components/Workflow/Editor/Node.vue index ab0c8f72bbb..49677614a1d 100644 --- a/client/src/components/Workflow/Editor/Node.vue +++ b/client/src/components/Workflow/Editor/Node.vue @@ -2,7 +2,7 @@