Compare commits

...

2 Commits

Author SHA1 Message Date
Nick O'Leary
37524e05bb Do not select parent group after completing quick-add inside group 2023-03-03 15:58:38 +00:00
Nick O'Leary
3fbfd47089 Show quick-add dialog when draggin wire to empty space 2023-03-03 15:52:59 +00:00

View File

@@ -1455,9 +1455,6 @@ RED.view = (function() {
// auto select dropped node - so info shows (if visible)
clearSelection();
nn.selected = true;
if (targetGroup) {
selectGroup(targetGroup,false);
}
movingSet.add(nn);
updateActiveNodes();
updateSelection();
@@ -1894,7 +1891,18 @@ RED.view = (function() {
};
RED.history.push(historyEvent);
RED.nodes.dirty(true);
} else {
// Trigger quick add dialog
d3.event.stopPropagation();
clearSelection();
const point = d3.mouse(this);
var clickedGroup = getGroupAt(point[0], point[1]);
if (drag_lines.length > 0) {
clickedGroup = clickedGroup || RED.nodes.group(drag_lines[0].node.g)
}
showQuickAddDialog({ position: point, group: clickedGroup });
}
hideDragLines();
}
if (lasso) {