Skip to content

iOS displays autoCenter: Phaser.Scale.CENTER_BOTH in a way not consistent with results on android and on pc #6862

Closed
@HawkenKing

Description

@HawkenKing

Version

  • Phaser Version: phaser sandbox
  • Operating system: iOS (16)
  • Browser: webkit, safari, chrome

Description

Using Phaser.Scale.RESIZE, for a pixelart game, that fills the browser window size, and scales to a fixed game size. (in this case, 144 by 256).
On PC and android, the code is fine. the gameContainer group is centered in the screen.
On iOS, the gameContainer is pushed down by a margin, and the pixel aspect ratio is squashed vertically slightly. the code doesn't add a margin.

Example Test Code

https://phaser.io/sandbox/A3KSEgq7

Additional Information

tested on iPhone 12

description

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions