From e6bcc1d87c65264608d1134a24d758e0f2a687c1 Mon Sep 17 00:00:00 2001 From: Benjamin Auder Date: Mon, 30 Mar 2020 23:40:46 +0200 Subject: [PATCH] Fix moves highlight in moves list for Apocalypse and Synchrone --- client/src/components/MoveList.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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) { -- 2.44.0