fix(editor): Fix moving canvas on middle click preventing lasso selection (#5996)
🐛 Prevent moving canvas on middle click
This commit is contained in:
@@ -39,7 +39,7 @@ export const moveNodeWorkflow = mixins(deviceSupportHelpers).extend({
|
|||||||
return;
|
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) {
|
if (e.button !== 1) {
|
||||||
this.uiStore.nodeViewMoveInProgress = true;
|
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
|
// 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;
|
this.uiStore.nodeViewMoveInProgress = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user