X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FBaseGame.vue;h=1840882fa95f775960ec27b03704d3f9aa837ad8;hp=a1af478f7740ab1cf1791c867f3a9872791e33e6;hb=8506fc3b3ecdf053689b3678584e902a8852aa47;hpb=0e912cb2584b4c18c0b3a8dec32b86fc8780bc66 diff --git a/client/src/components/BaseGame.vue b/client/src/components/BaseGame.vue index a1af478f..1840882f 100644 --- a/client/src/components/BaseGame.vue +++ b/client/src/components/BaseGame.vue @@ -258,8 +258,8 @@ export default { else this.lastMove = null; }, toggleAnalyze: function() { - // Autoplay has priority: - if (this.autoplay) return; + // Freeze while choices are shown (and autoplay has priority) + if (this.$refs["board"].choices.length > 0 || this.autoplay) return; if (this.mode != "analyze") { // Enter analyze mode: if (this.inMultimove) this.cancelCurrentMultimove(); @@ -282,6 +282,7 @@ export default { } this.vr = new V(fen); this.inMultimove = false; //in case of + this.$refs["board"].resetCurrentAttempt(); //also in case of this.incheck = this.vr.getCheckSquares(); if (this.cursor >= 0) this.lastMove = this.moves[this.cursor]; else this.lastMove = null;