X-Git-Url: https://git.auder.net/js/img/rock_paper_scissors_lizard_spock.gif?a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FBaseGame.vue;h=2bf1fbdb3b9bbd0d3389c6d54b2a3756b3b50e3d;hb=dcd68c4108412f45b8ce119ae80ce8f6e296800b;hp=608a98d464ebff3410336c9b7ff3dc66f6176d4d;hpb=3837d4f7885a3c3cdb468da2f3fa3fa1e5a1415a;p=vchess.git
diff --git a/client/src/components/BaseGame.vue b/client/src/components/BaseGame.vue
index 608a98d4..2bf1fbdb 100644
--- a/client/src/components/BaseGame.vue
+++ b/client/src/components/BaseGame.vue
@@ -1,12 +1,13 @@
-div#baseGame(tabindex=-1 @click="() => focusBg()" @keydown="handleKeys")
+div#baseGame(tabindex=-1 @click="() => focusBg()"
+ @keydown="handleKeys" @wheel="handleScroll")
input#modalEog.modal(type="checkbox")
- div(role="dialog" aria-labelledby="eogMessage")
+ div(role="dialog" data-checkbox="modalEog" aria-labelledby="eogMessage")
.card.smallpad.small-modal.text-center
label.modal-close(for="modalEog")
h3#eogMessage.section {{ endgameMessage }}
- .row
- #boardContainer.col-sm-12.col-md-9
+ #gameContainer
+ #boardContainer
Board(:vr="vr" :last-move="lastMove" :analyze="game.mode=='analyze'"
:user-color="game.mycolor" :orientation="orientation"
:vname="game.vname" @play-move="play")
@@ -21,9 +22,12 @@ div#baseGame(tabindex=-1 @click="() => focusBg()" @keydown="handleKeys")
button(@click="download") {{ st.tr["Download PGN"] }}
button(v-if="game.mode!='analyze'" @click="analyzePosition")
| {{ st.tr["Analyze"] }}
- .col-sm-12.col-md-3
+ #movesList
MoveList(v-if="showMoves" :score="game.score" :message="game.scoreMsg"
- :moves="moves" :cursor="cursor" @goto-move="gotoMove")
+ :firstNum="firstMoveNumber" :moves="moves" :cursor="cursor"
+ @goto-move="gotoMove")
+ // TODO: clearer required ?!
+ .clearer