add very basic undo/redo for move/scale/rotate
This commit is contained in:
parent
bf51d56bb5
commit
d9037c67ff
9 changed files with 204 additions and 5 deletions
|
|
@ -2388,10 +2388,13 @@
|
|||
}
|
||||
});
|
||||
|
||||
SPACE.mouse.onDrag(function(delta) {
|
||||
SPACE.mouse.onDrag(function(delta, offset, up = false) {
|
||||
if (API.feature.hover) {
|
||||
return;
|
||||
}
|
||||
if (up) {
|
||||
API.event.emit('mouse.drag.done', offset);
|
||||
}
|
||||
if (delta && UI.freeLayout.checked) {
|
||||
let set = settings();
|
||||
let dev = set.device;
|
||||
|
|
|
|||
Loading…
Reference in a new issue