X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FBoard.vue;fp=client%2Fsrc%2Fcomponents%2FBoard.vue;h=d45f33b8dbcc6834b21d057369eed1cb0d0b7537;hp=1d650ac034d9ccb808170a8ab03bcabd4936768b;hb=83cecc0fec143a6eac6f6632048d99398bd4c0da;hpb=9a7a1ccca45d083f50d92bc15cd389c14149b50a 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", {