X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FBoard.vue;h=b8d0fadd502ced30eab1381db3a23ea3f91b0bb9;hb=173f11dc3119c842a58daa9d1e0afc67eeb0e4e8;hp=1d650ac034d9ccb808170a8ab03bcabd4936768b;hpb=9a7a1ccca45d083f50d92bc15cd389c14149b50a;p=vchess.git diff --git a/client/src/components/Board.vue b/client/src/components/Board.vue index 1d650ac0..b8d0fadd 100644 --- a/client/src/components/Board.vue +++ b/client/src/components/Board.vue @@ -402,10 +402,12 @@ export default { this.choices = []; this.play(m); }; + const stopPropagation = (e) => { e.stopPropagation(); } const onClick = this.mobileBrowser - ? { touchend: applyMove } - : { mouseup: applyMove }; + // Must cancel mousedown logic: + ? { touchstart: stopPropagation, touchend: applyMove } + : { mousedown: stopPropagation, mouseup: applyMove }; return h( "div", { @@ -423,7 +425,7 @@ export default { attrs: { src: "/images/pieces/" + - // orientation: extra arg useful for some variants: + // orientation: extra arg useful for some variants this.vr.getPPpath(m, this.orientation) + V.IMAGE_EXTENSION },