mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
🐛 Fix issue that lastClickPosition ignored node view offset position
This commit is contained in:
@@ -324,8 +324,9 @@ export default mixins(
|
|||||||
},
|
},
|
||||||
mouseDown (e: MouseEvent) {
|
mouseDown (e: MouseEvent) {
|
||||||
// Save the location of the mouse click
|
// Save the location of the mouse click
|
||||||
this.lastClickPosition[0] = e.pageX;
|
const offsetPosition = this.$store.getters.getNodeViewOffsetPosition;
|
||||||
this.lastClickPosition[1] = e.pageY;
|
this.lastClickPosition[0] = e.pageX - offsetPosition[0];
|
||||||
|
this.lastClickPosition[1] = e.pageY - offsetPosition[1];
|
||||||
|
|
||||||
this.mouseDownMouseSelect(e);
|
this.mouseDownMouseSelect(e);
|
||||||
this.mouseDownMoveWorkflow(e);
|
this.mouseDownMoveWorkflow(e);
|
||||||
|
|||||||
Reference in New Issue
Block a user