Added a line to handle the history

This commit is contained in:
unsettledgames 2020-06-05 22:28:28 +02:00
parent 9beeefd399
commit a252d396c6

View File

@ -67,7 +67,6 @@ function endSelection() {
Math.round(lastMovePos[1] / zoom) - imageDataToMove.height / 2); Math.round(lastMovePos[1] / zoom) - imageDataToMove.height / 2);
} }
else { else {
console.log("yo");
currentLayer.context.putImageData( currentLayer.context.putImageData(
imageDataToMove, imageDataToMove,
copiedStartX, copiedStartX,
@ -83,4 +82,6 @@ function endSelection() {
imageDataToMove = undefined; imageDataToMove = undefined;
isPasting = false; isPasting = false;
isCutting = false; isCutting = false;
new HistoryStateEditCanvas();
} }