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); } });