X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FMoveList.vue;h=6eaf43ce40d881f90433b17f578c558d96774f3c;hb=b866a62ab3d1d427688954383ed7035111b0e132;hp=91d138efb41c1ef7408ec7c7d82565284b7c42a8;hpb=e75718fc502801bb4d97eb9efddb1ae34727f3ed;p=vchess.git diff --git a/client/src/components/MoveList.vue b/client/src/components/MoveList.vue index 91d138ef..6eaf43ce 100644 --- a/client/src/components/MoveList.vue +++ b/client/src/components/MoveList.vue @@ -53,7 +53,7 @@ div | {{ notation(moves[moveIdx]) }} .td( v-if="moveIdx < moves.length-1" - :class="{'highlight-lm': highlightBlackmove(moveIdx)}" + :class="{'highlight-lm': highlightBlackmove(moveIdx+1)}" @click="() => gotoMove(moveIdx+1)" ) | {{ notation(moves[moveIdx+1]) }} @@ -139,8 +139,8 @@ export default { }, highlightBlackmove: function(moveIdx) { return ( - this.cursor == moveIdx + 1 || - (this.show == "byrow" && this.cursor == moveIdx + 2) + this.cursor == moveIdx || + (this.show == "byrow" && this.cursor == moveIdx + 1) ); }, gotoMove: function(index) {