Landscape mode warning problematic on desktop [bounty: 20 XTR]
When I run Ancient Beast locally (on localhost:8080) and split my screen (e.g., with VSCode or any other application beside the browser), the game incorrectly displays a fullscreen overlay that says:
"Please rotate your device to landscape mode."
This should not happen because as we now im on a pc and this is related to mobile stuff it shouldn't even appear here.
However, when I do the exact same thing on the official Ancient Beast website, the game works fine in split-screen and does not show the warning.
To Reproduce Steps to reproduce the behavior:
Run the game locally (npm run start or equivalent).
Open the game in a browser (e.g., Firefox or Chrome).
Split the screen with another app (like VSCode or Finder).
Observe the overlay that appears saying "Please rotate your device to landscape mode."
Expected behavior The game should recognize that the screen is in landscape mode(its a pc of course) and allow gameplay, even in a non-maximized (split) window—just like on the official website.
Screenshots
official website:
specs :
OS: macOS Ventura
Browser: Firefox
Version: 113.0.2
@yousefsassy I was aware of this when I merged the PR for the feature. Easy workaround would be to use ad-blocker and remove that when it happens. We could also have a button on the warning thingy to disable it. But yeah, the feature should be smarter; the feature itself was a rather quick workaround tbh, as the game doesn't simply get locked in landscape mode.
@DreadKnight Hi, is this still unassigned?
@DreadKnight Hi, is this still unassigned?
@MattFooshilong Heya! I've assigned you to it. 2 weeks soft deadline 🐻
@DreadKnight Hi, is this still unassigned?
@MattFooshilong Heya! I've assigned you to it. 2 weeks soft deadline 🐻
@DreadKnight Hi DreadKnight this is done, just added a close button as per your earlier suggestion. Do let me know if there are any changes needed