1
0
mirror of https://github.com/Siccity/xNode.git synced 2025-12-20 01:06:01 +08:00

Re-enabled selecting of group children nodes.

This commit is contained in:
Emre Dogan 2023-10-08 23:29:56 +01:00
parent 26e5bf451e
commit 25e3f171f9
2 changed files with 4 additions and 3 deletions

View File

@ -123,7 +123,7 @@ namespace XNodeEditor.NodeGroups
case EventType.MouseUp:
_isResizing = false;
// Select nodes inside the group
if (false && Selection.Contains(target))
if (Selection.Contains(target))
{
var selection = Selection.objects.ToList();
// Select Nodes
@ -156,7 +156,7 @@ namespace XNodeEditor.NodeGroups
continue;
}
if (p.y > group.position.y + group.height + 30)
if (p.y > group.position.y + group.height + headerStyle.fixedHeight)
{
continue;
}

View File

@ -46,7 +46,8 @@ namespace XNode
continue;
}
if (node.position.y > position.y + height + 30)
// Number at the end must match the fixedHeight for the group's header style.
if (node.position.y > position.y + height + 46)
{
continue;
}