disable right click draw
This commit is contained in:
parent
503f7a1636
commit
d572d22c61
2 changed files with 2 additions and 2 deletions
|
@ -114,7 +114,7 @@
|
||||||
.toolbox {
|
.toolbox {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 0;
|
left: 0;
|
||||||
top: 50px;
|
top: 40%;
|
||||||
z-index: 100;
|
z-index: 100;
|
||||||
background-color: white;
|
background-color: white;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
|
|
|
@ -88,7 +88,7 @@ class Canvas {
|
||||||
if (ev.pointerType == "touch" || ev.buttons & 4) { // 4: middle mouse button
|
if (ev.pointerType == "touch" || ev.buttons & 4) { // 4: middle mouse button
|
||||||
this.isMoving = true;
|
this.isMoving = true;
|
||||||
this.startMoveCanvas(ev);
|
this.startMoveCanvas(ev);
|
||||||
} else { // pointerType == pen or mouse
|
} else if(ev.buttons & 1) { // pointerType == pen or mouse
|
||||||
this.startStroke(ev);
|
this.startStroke(ev);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue