From 257810708054696824f857f2421b0e12fff3b6a1 Mon Sep 17 00:00:00 2001 From: Naviary2 Date: Sun, 15 Dec 2024 13:19:19 -0700 Subject: [PATCH 1/2] Added patron --- src/client/views/index.ejs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/client/views/index.ejs b/src/client/views/index.ejs index e77393872..d0869a5ea 100644 --- a/src/client/views/index.ejs +++ b/src/client/views/index.ejs @@ -59,6 +59,7 @@

EmmaBellHelium

Meni

Settemio

+

Mark Wiemer

From 68d9e7ceb729c8bd693c90216a9c1fd483bb4a8f Mon Sep 17 00:00:00 2001 From: Naviary2 Date: Sun, 15 Dec 2024 18:46:37 -0700 Subject: [PATCH 2/2] Moved checkIfBoardDragged() to after selection.update() --- src/client/scripts/esm/game/chess/game.js | 1 + src/client/scripts/esm/game/rendering/movement.js | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/client/scripts/esm/game/chess/game.js b/src/client/scripts/esm/game/chess/game.js index 0b2deec55..401927b36 100644 --- a/src/client/scripts/esm/game/chess/game.js +++ b/src/client/scripts/esm/game/chess/game.js @@ -163,6 +163,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(); diff --git a/src/client/scripts/esm/game/rendering/movement.js b/src/client/scripts/esm/game/rendering/movement.js index 80f3a5b51..0fd408e14 100644 --- a/src/client/scripts/esm/game/rendering/movement.js +++ b/src/client/scripts/esm/game/rendering/movement.js @@ -165,9 +165,6 @@ function updateNavControls() { return; } - // Mouse clicks - checkIfBoardDragged(); - // Keyboard detectPanning(); // Movement (WASD) detectZooming(); // Zoom/Scale (Space shift, mouse wheel) @@ -542,5 +539,6 @@ export default { randomizePanVelDir, dragBoard, eraseMomentum, - setPositionToArea + setPositionToArea, + checkIfBoardDragged, }; \ No newline at end of file