phaserjs / phaser-ce

Phaser CE is a fun, free and fast 2D game framework for making HTML5 games for desktop and mobile web browsers, supporting Canvas and WebGL rendering.

Home Page:http://phaser.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Chrome 71 (Android) fullscreen mode does not hide Android soft keys

daniel-nth opened this issue · comments

You may not notice the issue if your Android device has hardware navigation keys. Pixel phones for example have not. Here's a screenshot of the problem.

This can be solved by passing Fullscreen​Options​.navigationU to the fullscreen request. MDN

I'll send a pull request in the next couple of days.

Not sure if can test for FullscreenOptions support, but I don't think there's any harm in passing it to browsers that don't support it.

It already passes navigationUI: hide to the fullscreen request, so I don't think it's that.

https://github.com/photonstorm/phaser/blob/master/src/scale/ScaleManager.js#L1181-L1183

Oops, sorry, yes :) Should be easy enough to add in there.