From 2fa50e458f5bc3abd7e60a32d6d311f491e78268 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Tue, 9 Mar 2021 00:37:01 +0000 Subject: [PATCH] Fix select up/down stream when zoomed in or out --- .../node_modules/@node-red/editor-client/src/js/ui/view.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/view.js b/packages/node_modules/@node-red/editor-client/src/js/ui/view.js index ea5f9ee41..cd756cff4 100755 --- a/packages/node_modules/@node-red/editor-client/src/js/ui/view.js +++ b/packages/node_modules/@node-red/editor-client/src/js/ui/view.js @@ -1592,7 +1592,6 @@ RED.view = (function() { if (n.x > x && n.x < x2 && n.y > y && n.y < y2) { if (!activeGroup || RED.group.contains(activeGroup,n)) { if (n.g && (!activeGroup || n.g !== activeGroup.id)) { - console.log("HERE") var group = RED.nodes.group(n.g); while (group.g && (!activeGroup || group.g !== activeGroup.id)) { group = RED.nodes.group(group.g); @@ -3095,7 +3094,7 @@ RED.view = (function() { // } else if (d3.event.shiftKey) { clearSelection(); - var clickPosition = (d3.event.offsetX - mousedown_node.x) + var clickPosition = (d3.event.offsetX/scaleFactor - mousedown_node.x) var edgeDelta = (mousedown_node.w/2) - Math.abs(clickPosition); var cnodes; var targetEdgeDelta = mousedown_node.w > 30 ? 25 : 8;