X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=public%2Fjavascripts%2Fcomponents%2Fgame.js;h=17f3b18d6570a75ade64a3482d4a7842017f1c53;hb=2807f530f7d9d7675497974fa95aa7ecdd5d144c;hp=a17876da697e6014dc0c6dbfb1d6d37e997dc0da;hpb=fb6ceeff17b53ab049e14d2bee7a61de92ca4762;p=vchess.git diff --git a/public/javascripts/components/game.js b/public/javascripts/components/game.js index a17876da..17f3b18d 100644 --- a/public/javascripts/components/game.js +++ b/public/javascripts/components/game.js @@ -257,7 +257,11 @@ Vue.component('my-game', { attrs: { "src": '/images/pieces/' + VariantRules.getPpath(m.appear[0].c+m.appear[0].p) + '.svg' }, 'class': { 'choice-piece': true }, - on: { "click": e => { this.play(m); this.choices=[]; } }, + 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=[]; }, + }, }) ] );