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);
}
else {
console.log("yo");
currentLayer.context.putImageData(
imageDataToMove,
copiedStartX,
@ -83,4 +82,6 @@ function endSelection() {
imageDataToMove = undefined;
isPasting = false;
isCutting = false;
new HistoryStateEditCanvas();
}