From 21985b7e9be2ebb232429ab9f7cc139d82f4333c Mon Sep 17 00:00:00 2001 From: adlee-was-taken Date: Sun, 22 Feb 2026 21:12:39 -0500 Subject: [PATCH] Route all lobby transitions through showLobby() for animation cleanup game_ended, queue_left, and cancelMatchmaking were calling showScreen('lobby') directly, bypassing the cancelAll() cleanup. Co-Authored-By: Claude Opus 4.6 --- client/app.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/app.js b/client/app.js index 13aa99b..ef1b381 100644 --- a/client/app.js +++ b/client/app.js @@ -950,7 +950,7 @@ class GolfGame { // Host ended the game or player was kicked this._intentionalClose = true; if (this.ws) this.ws.close(); - this.showScreen('lobby'); + this.showLobby(); if (data.reason) { this.showError(data.reason); } @@ -975,7 +975,7 @@ class GolfGame { case 'queue_left': this.stopMatchmakingTimer(); - this.showScreen('lobby'); + this.showLobby(); break; case 'error': @@ -995,7 +995,7 @@ class GolfGame { cancelMatchmaking() { this.send({ type: 'queue_leave' }); this.stopMatchmakingTimer(); - this.showScreen('lobby'); + this.showLobby(); } startMatchmakingTimer() {