From 65495c17c7dafb8f29af295699087ae90bdc1940 Mon Sep 17 00:00:00 2001 From: Benjamin Auder <benjamin.auder@somewhere> Date: Sun, 16 Feb 2020 19:06:56 +0100 Subject: [PATCH] Experimental fix attempt in Board.vue (bad behavior on smartphones) --- client/src/components/Board.vue | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/client/src/components/Board.vue b/client/src/components/Board.vue index 0f6bae3f..a1949d89 100644 --- a/client/src/components/Board.vue +++ b/client/src/components/Board.vue @@ -75,8 +75,6 @@ export default { 'class': { 'choice-piece': true }, on: { "click": e => { this.play(m); this.choices=[]; }, - // NOTE: add 'touchstart' event to fix a problem on smartphones - //"touchstart": e => { this.play(m); this.choices=[]; }, }, }) ] @@ -251,12 +249,12 @@ export default { { // NOTE: click = mousedown + mouseup on: { -// mousedown: this.mousedown, -// mousemove: this.mousemove, -// mouseup: this.mouseup, - touchstart: this.mousedown, - touchmove: this.mousemove, - touchend: this.mouseup, + mousedown: this.mousedown, + mousemove: this.mousemove, + mouseup: this.mouseup, +// touchstart: this.mousedown, +// touchmove: this.mousemove, +// touchend: this.mouseup, }, }, elementArray -- 2.44.0