From: Benjamin Auder Date: Thu, 9 Apr 2020 18:45:19 +0000 (+0200) Subject: Reset last move when cancelling half move X-Git-Url: https://git.auder.net/doc/html/app_dev.php/index.css?a=commitdiff_plain;h=c3f02a0e9d1104911f3dc70ca9b531f73b1bd769;p=vchess.git Reset last move when cancelling half move --- diff --git a/client/src/components/BaseGame.vue b/client/src/components/BaseGame.vue index 1840882f..e99c194e 100644 --- a/client/src/components/BaseGame.vue +++ b/client/src/components/BaseGame.vue @@ -592,6 +592,8 @@ export default { if (this.inMultimove) { this.cancelCurrentMultimove(); this.incheck = this.vr.getCheckSquares(); + if (this.cursor >= 0) this.lastMove = this.moves[this.cursor]; + else this.lastMove = null; } else { if (!move) { const minCursor =