Files
romm/frontend
zurdi 6d5effb74c fix(player): keep RomM chrome off the emulator on mobile
Since 5.0.0 the fixed v2 nav chrome (logo, user menu, tab bar) painted
over the EmulatorJS UI on phones: the running stage's z-index traps the
emulator's own layers below the nav, the iOS fullscreen shim's
nav-hiding selectors only matched v1 classes, and EmulatorJS's corner
menu button sat flush against rounded screen corners while overlapping
the virtual R shoulder button. Touches on the virtual gamepad's empty
zones also synthesized mouse events that ghost-opened the emulator
menu between the A and B buttons (EmulatorJS/EmulatorJS#1221).

Players now mirror their running stage into a stageActive store flag
(PlayerShell owns it for Ruffle/JsDos/Pico8; EmulatorJS and Stream
wire their own): AppLayout unmounts AppNav/BottomNav while it is set
and mirrors it onto <html>, where global.css zeroes --r-nav-h and
--r-bottom-nav-h so stages, dialogs, menus, and toasts reclaim the
space through the tokens they already consume. The flag is deliberately
separate from `playing`, which also spans Stream's loading phase while
the config screen still needs the nav, and stays unset in the admin
Desktop view. A stage-scoped touchstart guard cancels empty-zone
touches, and the menu button gets corner margin plus a 44px target.

Fixes #4081

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ND1wfNV3vKwu8Mfinn4WkA
2026-09-10 17:17:19 +02:00
..
2026-05-30 20:53:52 -04:00
2026-07-26 14:14:07 -04:00