Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…s.org into dragging-pieces
  • Loading branch information
BF5258 committed Dec 16, 2024
2 parents 3435ba7 + 68d9e7c commit 68c9092
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
1 change: 1 addition & 0 deletions src/client/scripts/esm/game/chess/game.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ function updateBoard() {
guinavigation.update();
selection.update();
arrows.update(); // NEEDS TO BE AFTER selection.update(), because the arrows model regeneration DEPENDS on the piece selected!
movement.checkIfBoardDragged(); // ALSO depends on whether or not a piece is selected/being dragged!
miniimage.genModel();
highlightline.genModel();

Expand Down
9 changes: 3 additions & 6 deletions src/client/scripts/esm/game/rendering/movement.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,6 @@ function updateNavControls() {
return;
}

// Mouse clicks
checkIfBoardDragged();

// Keyboard
detectPanning(); // Movement (WASD)
detectZooming(); // Zoom/Scale (Space shift, mouse wheel)
Expand Down Expand Up @@ -546,8 +543,8 @@ export default {
updateNavControls,
randomizePanVelDir,
dragBoard,
eraseMomentum,
hasMomentum,
clearPositionHistory,
setPositionToArea
eraseMomentum,
setPositionToArea,
checkIfBoardDragged,
};
1 change: 1 addition & 0 deletions src/client/views/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
<p>EmmaBellHelium</p>
<p>Meni</p>
<p>Settemio</p>
<p>Mark Wiemer</p>
</div>
</div>
</main>
Expand Down

0 comments on commit 68c9092

Please sign in to comment.