Tried to refactor more, snapped the brush preview to the pixel grid

This commit is contained in:
unsettledgames
2020-07-21 23:36:12 +02:00
parent 81cc4c8900
commit d14deeb761
4 changed files with 5 additions and 13 deletions

View File

@@ -53,8 +53,6 @@ function endRectDrawing(mouseEvent) {
startRectY = tmp;
}
let hexColor = hexToRgb(currentLayer.context.fillStyle);
// Resetting this
isDrawingRect = false;
// Drawing the rect