mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-24 11:02:12 -08:00
fix(editor): Fix moving canvas on middle click preventing lasso selection (#5996)
🐛 Prevent moving canvas on middle click
This commit is contained in:
parent
b351c62659
commit
3c2a56928b
|
@ -39,7 +39,7 @@ export const moveNodeWorkflow = mixins(deviceSupportHelpers).extend({
|
|||
return;
|
||||
}
|
||||
|
||||
// Don't indicate move start just yet if middle button is pressed
|
||||
// Prevent moving canvas on anything but middle button
|
||||
if (e.button !== 1) {
|
||||
this.uiStore.nodeViewMoveInProgress = true;
|
||||
}
|
||||
|
@ -77,7 +77,7 @@ export const moveNodeWorkflow = mixins(deviceSupportHelpers).extend({
|
|||
}
|
||||
|
||||
// Signal that moving canvas is active if middle button is pressed and mouse is moved
|
||||
if (e.button === 1) {
|
||||
if (e.buttons === 4) {
|
||||
this.uiStore.nodeViewMoveInProgress = true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue