From: Benjamin Auder Date: Sun, 16 Feb 2020 18:06:56 +0000 (+0100) Subject: Experimental fix attempt in Board.vue (bad behavior on smartphones) X-Git-Url: https://git.auder.net/variants/current/doc/css/assets/config.php?a=commitdiff_plain;h=65495c17c7dafb8f29af295699087ae90bdc1940;p=vchess.git Experimental fix attempt in Board.vue (bad behavior on smartphones) --- 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