Continued cut -> paste implementation

There's only a bug, when pasting consecutively, every time it cuts the area again. There's probably some weird cut call somewhere.
This commit is contained in:
unsettledgames
2020-04-20 19:26:00 +02:00
parent 944cf1fbed
commit 12e43e0449
5 changed files with 65 additions and 15 deletions

View File

@@ -63,10 +63,14 @@ function endSelection() {
Math.round(lastMovePos[0] / zoom - imageDataToMove.width / 2),
Math.round(lastMovePos[1] / zoom - imageDataToMove.height / 2));
}
else {
undo();
}
}
selectionCanceled = true;
isRectSelecting = false;
firstTimeMove = true;
imageDataToMove = undefined;
isPasting = false;
}