mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Show quick-add dialog when draggin wire to empty space
This commit is contained in:
parent
d1094da6c7
commit
3fbfd47089
@ -1894,7 +1894,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) {
|
||||
|
Loading…
Reference in New Issue
Block a user