Merge pull request #5496 from lklivingstone/lklivingstone-5492/fix-middle-click-pan

Fix: allow middle-click panning over links and ports
pull/5500/head
Nick O'Leary 2026-02-23 16:29:19 +00:00 committed by GitHub
commit 3e2e30f4dd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -3226,7 +3226,7 @@ RED.view = (function() {
clearSuggestedFlow();
RED.contextMenu.hide();
evt = evt || d3.event;
if (evt === 1) {
if (evt.button !== 0) {
return;
}
if (mouse_mode === RED.state.SELECTING_NODE) {
@ -4082,7 +4082,7 @@ RED.view = (function() {
d3.event.stopPropagation();
return;
}
if (d3.event.button === 2) {
if (d3.event.button !== 0) {
return
}
mousedown_link = d;