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

Restrict Lasso select to current workspace

This commit is contained in:
Nicholas O'Leary 2013-10-21 23:22:56 +01:00
parent ce4b5ee237
commit fda72d2b53

View File

@ -218,7 +218,7 @@ RED.view = function() {
clearSelection();
}
RED.nodes.eachNode(function(n) {
if (!n.selected) {
if (n.z == activeWorkspace && !n.selected) {
n.selected = (n.x > x && n.x < x2 && n.y > y && n.y < y2);
if (n.selected) {
n.dirty = true;