mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Moving nodes mark workspace as dirty
This commit is contained in:
parent
2777c2937a
commit
e873afd40b
@ -611,7 +611,9 @@ RED.view = (function() {
|
|||||||
for (var j=0;j<moving_set.length;j++) {
|
for (var j=0;j<moving_set.length;j++) {
|
||||||
ns.push({n:moving_set[j].n,ox:moving_set[j].ox,oy:moving_set[j].oy});
|
ns.push({n:moving_set[j].n,ox:moving_set[j].ox,oy:moving_set[j].oy});
|
||||||
}
|
}
|
||||||
RED.history.push({t:'move',nodes:ns,dirty:RED.nodes.dirty()});
|
var wasDirty = RED.nodes.dirty();
|
||||||
|
RED.nodes.dirty(true);
|
||||||
|
RED.history.push({t:'move',nodes:ns,dirty:wasDirty});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (mouse_mode == RED.state.MOVING || mouse_mode == RED.state.MOVING_ACTIVE) {
|
if (mouse_mode == RED.state.MOVING || mouse_mode == RED.state.MOVING_ACTIVE) {
|
||||||
|
Loading…
Reference in New Issue
Block a user