disable right click draw

This commit is contained in:
Ruben van de Ven 2022-02-08 09:28:30 +01:00
parent 503f7a1636
commit d572d22c61
2 changed files with 2 additions and 2 deletions

View File

@ -114,7 +114,7 @@
.toolbox {
position: absolute;
left: 0;
top: 50px;
top: 40%;
z-index: 100;
background-color: white;
padding: 5px;

View File

@ -88,7 +88,7 @@ class Canvas {
if (ev.pointerType == "touch" || ev.buttons & 4) { // 4: middle mouse button
this.isMoving = true;
this.startMoveCanvas(ev);
} else { // pointerType == pen or mouse
} else if(ev.buttons & 1) { // pointerType == pen or mouse
this.startStroke(ev);
}
});