X-Git-Url: https://git.auder.net/assets/icon_close.svg?a=blobdiff_plain;f=public%2Fjavascripts%2Fcomponents%2Fgame.js;h=308d415e9eec0e220832167a5e402c90ef2985fc;hb=5bd679d562f992cad856099fbc98014dc4556801;hp=5c1e6024a273dee0196cf23920e8a502ab51bc1f;hpb=70ff70ea6054d12f296e5d989b0601bddad244d4;p=vchess.git diff --git a/public/javascripts/components/game.js b/public/javascripts/components/game.js index 5c1e6024..308d415e 100644 --- a/public/javascripts/components/game.js +++ b/public/javascripts/components/game.js @@ -755,7 +755,8 @@ Vue.component('my-game', { this.possibleMoves = this.mode!="idle" && this.vr.canIplay(this.mycolor,startSquare) ? this.vr.getPossibleMovesFrom(startSquare) : []; - e.target.parentNode.appendChild(this.selectedPiece); + // Next line add moving piece just after current image (required for Crazyhouse reserve) + e.target.parentNode.insertBefore(this.selectedPiece, e.target.nextSibling); } }, mousemove: function(e) {