fix(lobby): restore mobile scrolling outside matches

This commit is contained in:
2026-09-12 22:53:26 +03:00
parent 07eaed9c93
commit 720cd18b6e
4 changed files with 135 additions and 12 deletions
+2 -4
View File
@@ -417,6 +417,7 @@
byId("lobby-screen").hidden = name !== "lobby";
byId("match-screen").hidden = name !== "match";
byId("observer-screen").hidden = name !== "observer";
documentObject.body.classList.toggle("match-active", name === "match");
}
function renderWelcomeHeadline(headline) {
@@ -661,10 +662,7 @@
}
if (snapshot.phase === "paused") { resetPlayerControls(); showModal("Пауза", "Один герой потерялся между Wi‑Fi пакетами. Ждём возвращения.", "ПЕРЕРЫВ", false); }
else if (snapshot.phase === "finished" || snapshot.result && snapshot.result !== "none") renderResult(snapshot.result);
else {
hideModal();
if (!state.onboardingSeen) showOnboarding(0);
}
else hideModal();
}
function applyObserverTransform() {