From d572d22c61f88f61318d99288938a7b904bb410d Mon Sep 17 00:00:00 2001 From: Ruben van de Ven Date: Tue, 8 Feb 2022 09:28:30 +0100 Subject: [PATCH] disable right click draw --- www/draw.html | 2 +- www/draw.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/www/draw.html b/www/draw.html index 63ac0f2..a400b09 100644 --- a/www/draw.html +++ b/www/draw.html @@ -114,7 +114,7 @@ .toolbox { position: absolute; left: 0; - top: 50px; + top: 40%; z-index: 100; background-color: white; padding: 5px; diff --git a/www/draw.js b/www/draw.js index d7da4a8..793a14a 100644 --- a/www/draw.js +++ b/www/draw.js @@ -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); } });