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);
|
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();
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user