diff --git a/src/renderer/components/ChessGround.vue b/src/renderer/components/ChessGround.vue index ae1c4c8..c3f2f71 100644 --- a/src/renderer/components/ChessGround.vue +++ b/src/renderer/components/ChessGround.vue @@ -646,8 +646,6 @@ export default { dropPiece (event, pieceType, color) { this.board.dragNewPiece({ role: pieceType, color: color, promoted: false }, event) this.selectedPiece = pieceType - console.log(`dropPiece: ${event} ${pieceType} ${color}`) - console.log(`dropPiece: ${this.board.getFen()}`) }, extractMoves (move) { const letters = move.split(/(\d+)/) @@ -828,7 +826,6 @@ export default { this.$store.dispatch('push', { move: uciMove, prev: prevMov }) this.updateHand() this.afterMove() - console.log(this.turn) } } }, diff --git a/src/renderer/components/ChessPocket.vue b/src/renderer/components/ChessPocket.vue index add2d07..be06b5d 100644 --- a/src/renderer/components/ChessPocket.vue +++ b/src/renderer/components/ChessPocket.vue @@ -14,6 +14,7 @@ class="piece" :class="[piece.type, color, piece.type === selectedPiece ? 'selected' : '' , orientation === 'white' && color === 'black' ? 'flipB' : '', orientation === 'black' ? 'flipW' : '']" @mousedown="clicked($event, piece.type, color, piece.count)" + @dragstart="(e) => e.preventDefault()" />