mirror of https://github.com/node-red/node-red.git
Merge pull request #5496 from lklivingstone/lklivingstone-5492/fix-middle-click-pan
Fix: allow middle-click panning over links and portspull/5500/head
commit
3e2e30f4dd
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue