X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FBaseGame.vue;h=7424aa40c80a4efc42d74f228a9d333ee1edd0fc;hb=e0f26496c4e0e335055ea63d6cba75167ed7f77e;hp=3d8e7eb9d26465dab61785ecbfdd6e0f919b4ac7;hpb=aef58d08d7c453f7ae7947e718c3bd6f092f02f2;p=vchess.git diff --git a/client/src/components/BaseGame.vue b/client/src/components/BaseGame.vue index 3d8e7eb9..7424aa40 100644 --- a/client/src/components/BaseGame.vue +++ b/client/src/components/BaseGame.vue @@ -258,8 +258,11 @@ export default { else this.lastMove = null; }, toggleAnalyze: function() { + // Autoplay has priority: + if (this.autoplay) return; if (this.mode != "analyze") { // Enter analyze mode: + if (this.inMultimove) this.cancelCurrentMultimove(); this.gameMode = this.mode; //was not 'analyze' this.mode = "analyze"; this.gameCursor = this.cursor;