1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Ignore middle-click on node/ports to enable panning

This commit is contained in:
Nick O'Leary 2018-06-25 13:36:58 +01:00
parent 2b2eee352f
commit f95a2851c8
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -1484,6 +1484,10 @@ RED.view = (function() {
//console.log(d,portType,portIndex);
// disable zoom
//vis.call(d3.behavior.zoom().on("zoom"), null);
if (d3.event.button === 1) {
return;
}
mousedown_node = d;
mousedown_port_type = portType;
mousedown_port_index = portIndex || 0;
@ -1715,6 +1719,9 @@ RED.view = (function() {
function nodeMouseDown(d) {
focusView();
if (d3.event.button === 1) {
return;
}
//var touch0 = d3.event;
//var pos = [touch0.pageX,touch0.pageY];
//RED.touch.radialMenu.show(d3.select(this),pos);