mirror of
https://github.com/lospec/pixel-editor.git
synced 2023-08-10 21:12:51 +03:00
Added a line to handle the history
This commit is contained in:
parent
9beeefd399
commit
a252d396c6
@ -67,7 +67,6 @@ function endSelection() {
|
||||
Math.round(lastMovePos[1] / zoom) - imageDataToMove.height / 2);
|
||||
}
|
||||
else {
|
||||
console.log("yo");
|
||||
currentLayer.context.putImageData(
|
||||
imageDataToMove,
|
||||
copiedStartX,
|
||||
@ -83,4 +82,6 @@ function endSelection() {
|
||||
imageDataToMove = undefined;
|
||||
isPasting = false;
|
||||
isCutting = false;
|
||||
|
||||
new HistoryStateEditCanvas();
|
||||
}
|
Loading…
Reference in New Issue
Block a user