phaserjs / phaserjs/phaser

ScaleManager ORIENTATION_CHANGE issue @ Chrome @ Android

Open
#7,057 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

🖥️ Scale Manager
Dominant language
JavaScript
Stars
40.3k
Forks
7.2k
PR merge metrics
No merged PRs in 30d

Description

Test device:

  • Phaser version: 3.85.2, 3.86.0, 3.87.0, 3.88.2 and Dev Build (no issue @ 3.80.1)
  • Chrome version: 133.0.6943.121
  • Operating system: Android 12
  • Sandbox: window-size streched earth picture

Test case:

  • How-to: rotate mobile so orientation change happens between landscape/portrait
  • Issue: canvas would not fit/resize into window bounds and earth-picture breaks
  • Observations: scrollbars appear, moving scrollbars fixes the issue

Might be related ?:

  • #6862 iOS displays autoCenter: Phaser.Scale.CENTER_BOTH in a way not consistent with results on android and on pc
  • #6547 Orientation portrait => landscape bug on Coordinates

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with Phaser's ScaleManager orientation-change handling and reproduce the linked sandbox on Chrome 133 on Android 12 by rotating between landscape and portrait. Compare the behavior with Phaser 3.80.1 and later versions, then verify that the canvas fits the window bounds without scrollbars or a broken image after rotation.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.