Cancel animations on game leave to prevent overlay flash on lobby

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
adlee-was-taken 2026-02-22 21:06:11 -05:00
parent a0bb28d5eb
commit 0bfe9d5f9f

View File

@ -3057,6 +3057,9 @@ class GolfGame {
} }
showLobby() { showLobby() {
if (window.cardAnimations) {
window.cardAnimations.cancelAll();
}
this.showScreen(this.lobbyScreen); this.showScreen(this.lobbyScreen);
this.lobbyError.textContent = ''; this.lobbyError.textContent = '';
this.roomCode = null; this.roomCode = null;