1
0
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:
Nick O'Leary 2016-01-08 11:08:48 +00:00
parent 2777c2937a
commit e873afd40b

View File

@ -611,7 +611,9 @@ RED.view = (function() {
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});
}
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) {