Fix select up/down stream when zoomed in or out

This commit is contained in:
Nick O'Leary 2021-03-09 00:37:01 +00:00
parent 9c7db1381c
commit 2fa50e458f
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9
1 changed files with 1 additions and 2 deletions

View File

@ -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;