mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Fix select up/down stream when zoomed in or out
This commit is contained in:
parent
9c7db1381c
commit
2fa50e458f
@ -1592,7 +1592,6 @@ RED.view = (function() {
|
|||||||
if (n.x > x && n.x < x2 && n.y > y && n.y < y2) {
|
if (n.x > x && n.x < x2 && n.y > y && n.y < y2) {
|
||||||
if (!activeGroup || RED.group.contains(activeGroup,n)) {
|
if (!activeGroup || RED.group.contains(activeGroup,n)) {
|
||||||
if (n.g && (!activeGroup || n.g !== activeGroup.id)) {
|
if (n.g && (!activeGroup || n.g !== activeGroup.id)) {
|
||||||
console.log("HERE")
|
|
||||||
var group = RED.nodes.group(n.g);
|
var group = RED.nodes.group(n.g);
|
||||||
while (group.g && (!activeGroup || group.g !== activeGroup.id)) {
|
while (group.g && (!activeGroup || group.g !== activeGroup.id)) {
|
||||||
group = RED.nodes.group(group.g);
|
group = RED.nodes.group(group.g);
|
||||||
@ -3095,7 +3094,7 @@ RED.view = (function() {
|
|||||||
// } else
|
// } else
|
||||||
if (d3.event.shiftKey) {
|
if (d3.event.shiftKey) {
|
||||||
clearSelection();
|
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 edgeDelta = (mousedown_node.w/2) - Math.abs(clickPosition);
|
||||||
var cnodes;
|
var cnodes;
|
||||||
var targetEdgeDelta = mousedown_node.w > 30 ? 25 : 8;
|
var targetEdgeDelta = mousedown_node.w > 30 ? 25 : 8;
|
||||||
|
Loading…
Reference in New Issue
Block a user