From: Benjamin Auder Date: Thu, 9 Apr 2020 14:47:33 +0000 (+0200) Subject: Fix enter/exit analyze mode in the middle of a multi-move X-Git-Url: https://git.auder.net/%7B%7B%20asset%28%27mixstore/css/static/%3C?a=commitdiff_plain;h=e0f26496c4e0e335055ea63d6cba75167ed7f77e;p=vchess.git Fix enter/exit analyze mode in the middle of a multi-move --- 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;