:bug: Fixing Bug
:bug: Fixing Bug

Ref: I also believe that document.documentElement.clientWidthshould be used in favour of window.innerWidth.

This would resolve any problems designers may have with mobile device pinch zooming: when a user pinch zooms on a mobile device/tablet window.innerWidth will report the width the viewport is currently capturing rather than the actual width of the document.

Since document.documentElement.clientWidth reports on the width of the root element (in most cases <html>), using only this method would circumvent this issue in most browsers.

Sanchez3/generator-phaser-h5,Sanchez3/generator-phaser-h5