Solved bug that made the colour picker appear in the canvas.

Signed-off-by: npalomba <nicola.palomba@studenti.galileilivorno.gov.it>
This commit is contained in:
npalomba
2019-03-31 19:53:39 +02:00
parent 6a973192da
commit 8f4f4c2478
5 changed files with 14 additions and 15 deletions

View File

@ -93,7 +93,7 @@ window.addEventListener("mouseup", function (mouseEvent) {
//fill starting at the location
fill(cursorLocation);
}
else if (currentTool == 'zoom') {
else if (currentTool == 'zoom' && mouseEvent.target == canvasView) {
let mode;
if (mouseEvent.which == 1){
mode = "in";