diff --git a/client/src/components/Workflow/Editor/Node.vue b/client/src/components/Workflow/Editor/Node.vue index 61db418db8c..8e54d4b4398 100644 --- a/client/src/components/Workflow/Editor/Node.vue +++ b/client/src/components/Workflow/Editor/Node.vue @@ -258,8 +258,12 @@ export default { methods: { onMove(e) { - const { x, y } = e.data; - this.offset = { x, y }; + const { deltaX, deltaY } = e.data; + this.offset = { x: this.offset.x + deltaX, y: this.offset.y + deltaY }; + this.onUpdatePosition({ + top: this.step.position.top + deltaY, + left: this.step.position.left + deltaX, + }); }, onStop() { console.log("onStop called"); diff --git a/client/src/components/Workflow/Editor/NodeOutput.vue b/client/src/components/Workflow/Editor/NodeOutput.vue index a20a62fad85..f6a69f9a5f4 100644 --- a/client/src/components/Workflow/Editor/NodeOutput.vue +++ b/client/src/components/Workflow/Editor/NodeOutput.vue @@ -14,26 +14,15 @@ :class="terminalClass" :output-name="output.name" @start="isDragging = true" - @stop="isDragging = false" + @stop="onStopDragging" @move="onMove" v-on="$listeners"> - - - +