Fixed bug in canvas dragging, must fix the one on resizing.

Signed-off-by: npalomba <nicola.palomba@studenti.galileilivorno.gov.it>
This commit is contained in:
npalomba
2019-03-31 17:15:03 +02:00
parent a9d380ec1d
commit 16d816db18
8 changed files with 53 additions and 29 deletions

View File

@@ -17,7 +17,7 @@ var documentCreated = false;
var firstCheckerBoardColor = 'rgba(139, 139, 139, 1)';
var secondCheckerBoardColor = 'rgba(105, 105, 105, 1)';
var checkerBoardSquareSize = 16;
var checkerBoard = document.getElementById("checkerboard");
var checkerBoardCanvas = document.getElementById("checkerboard");
//common elements
var brushPreview = document.getElementById("brush-preview");