AncientBeast icon indicating copy to clipboard operation
AncientBeast copied to clipboard

Landscape mode warning problematic on desktop [bounty: 20 XTR]

Open yousefsassy opened this issue 7 months ago • 1 comments

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

Image

official website:

Image

specs :

OS: macOS Ventura

Browser: Firefox

Version: 113.0.2

yousefsassy avatar May 13 '25 21:05 yousefsassy

@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 avatar May 14 '25 13:05 DreadKnight

@DreadKnight Hi, is this still unassigned?

Matt-Foo-SL avatar Jun 23 '25 05:06 Matt-Foo-SL

@DreadKnight Hi, is this still unassigned?

@MattFooshilong Heya! I've assigned you to it. 2 weeks soft deadline 🐻

DreadKnight avatar Jun 23 '25 08:06 DreadKnight

@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

Matt-Foo-SL avatar Jun 25 '25 12:06 Matt-Foo-SL