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

Pressing escape whilst DETACH_DRAGGING should revert change

This commit is contained in:
Nick O'Leary 2022-01-11 00:24:34 +00:00
parent 58c94b7773
commit 30f2b96c68
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -1916,7 +1916,11 @@ RED.view = (function() {
return;
}
if (mouse_mode === RED.state.DETACHED_DRAGGING) {
var node = movingSet.get(0);
node.n.x = node.ox;
node.n.y = node.oy;
clearSelection();
RED.history.pop();
mouse_mode = 0;
} else if (mouse_mode === RED.state.IMPORT_DRAGGING) {
clearSelection();