Fixed more bugs 🆒 🆒

This commit is contained in:
unsettledgames
2020-03-15 17:11:00 +01:00
parent 7dec2f1490
commit ab0b3e81e3
4 changed files with 20 additions and 10 deletions

View File

@ -23,6 +23,12 @@ window.addEventListener("mousedown", function (mouseEvent) {
currentTool = 'eyedropper';
else if (mouseEvent.target.className == 'drawingCanvas' && (currentTool == 'pencil' || currentTool == 'eraser'))
new HistoryStateEditCanvas();
else if (currentTool == 'moveselection') {
if (!cursorInSelectedArea()) {
changeTool('pencil');
undo();
}
}
//saveHistoryState({type: 'canvas', canvas: context.getImageData(0, 0, canvasSize[0], canvasSize[1])});
updateCursor();