diff --git a/packages/editor-ui/src/views/NodeView.vue b/packages/editor-ui/src/views/NodeView.vue index 2f07e5bfc9..0ccf93794d 100644 --- a/packages/editor-ui/src/views/NodeView.vue +++ b/packages/editor-ui/src/views/NodeView.vue @@ -324,8 +324,9 @@ export default mixins( }, mouseDown (e: MouseEvent) { // Save the location of the mouse click - this.lastClickPosition[0] = e.pageX; - this.lastClickPosition[1] = e.pageY; + const offsetPosition = this.$store.getters.getNodeViewOffsetPosition; + this.lastClickPosition[0] = e.pageX - offsetPosition[0]; + this.lastClickPosition[1] = e.pageY - offsetPosition[1]; this.mouseDownMouseSelect(e); this.mouseDownMoveWorkflow(e);