X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=public%2Fjavascripts%2Fcomponents%2Fgame.js;h=17f3b18d6570a75ade64a3482d4a7842017f1c53;hp=a17876da697e6014dc0c6dbfb1d6d37e997dc0da;hb=2807f530f7d9d7675497974fa95aa7ecdd5d144c;hpb=77fa6d1fe6306f1f9dcd3c363bba8965b602d237 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=[]; }, + }, }) ] );