X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FBoard.vue;h=d45f33b8dbcc6834b21d057369eed1cb0d0b7537;hb=eb6b0764640ae4c091848157c1c4f6fe014624b3;hp=1d650ac034d9ccb808170a8ab03bcabd4936768b;hpb=9a7a1ccca45d083f50d92bc15cd389c14149b50a;p=vchess.git diff --git a/client/src/components/Board.vue b/client/src/components/Board.vue index 1d650ac0..d45f33b8 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", {