From: Benjamin Auder Date: Mon, 30 Mar 2020 21:40:46 +0000 (+0200) Subject: Fix moves highlight in moves list for Apocalypse and Synchrone X-Git-Url: https://git.auder.net/%7B%7B%20asset%28%27mixstore/images/scripts/doc/html/left.jpg?a=commitdiff_plain;h=e6bcc1d87c65264608d1134a24d758e0f2a687c1;p=vchess.git Fix moves highlight in moves list for Apocalypse and Synchrone --- diff --git a/client/src/components/MoveList.vue b/client/src/components/MoveList.vue index 4c351dd5..a9fa9834 100644 --- a/client/src/components/MoveList.vue +++ b/client/src/components/MoveList.vue @@ -138,7 +138,14 @@ export default { highlightBlackmove: function(moveIdx) { return ( this.cursor == moveIdx || - (this.show == "byrow" && this.cursor == moveIdx + 1) + ( + // If display by rows, hightlight last black move while the white + // move is being played: + this.show == "byrow" && + this.cursor == moveIdx + 1 && + // ...except if cursor is behind in the game: + this.cursor == this.moves.length - 1 + ) ); }, gotoMove: function(index) {