Fix: allow middle-click panning over links and ports

pull/5496/head
lklivingstone 2026-02-23 19:27:48 +05:30
parent d981771a2d
commit 38f733d643
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;