X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FMoveList.vue;h=91d138efb41c1ef7408ec7c7d82565284b7c42a8;hp=2bad3014fd237be44bb9316dbf8b73f11304fde8;hb=2c5d7b20742b802d9c47916915c1114bcfc9a9c3;hpb=9edfb7146fdc4dd08914b2a117d2852e705353aa diff --git a/client/src/components/MoveList.vue b/client/src/components/MoveList.vue index 2bad3014..91d138ef 100644 --- a/client/src/components/MoveList.vue +++ b/client/src/components/MoveList.vue @@ -114,9 +114,11 @@ export default { // $nextTick to wait for table > tr to be rendered this.$nextTick(() => { let curMove = document.querySelector(".td.highlight-lm"); - if (!curMove && this.moves.length > 0) + if (!curMove && this.moves.length > 0) { // Cursor is before game beginning, and some moves were made: - curMove = document.querySelector(".moves-list > .tr:first-child > .td"); + curMove = + document.querySelector(".moves-list > .tr:first-child > .td"); + } if (!!curMove) { curMove.scrollIntoView({ behavior: "auto",