mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 04:34:06 -08:00
🐛 Fix issue that lastClickPosition ignored node view offset position
This commit is contained in:
parent
34c2975a9f
commit
de3c52b355
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue