<static, readonly> visualBounds : Phaser.Rectangle
The bounds of the Visual viewport, as discussed in
A tale of two viewports — part one
with one difference: the viewport size excludes scrollbars, as found on some desktop browsers.
Supported mobile:
iOS/Safari, Android 4, IE10, Firefox OS (maybe not Firefox Android), Opera Mobile 16
The properties change dynamically.
Properties:
Name | Type | Description |
---|---|---|
x | number | Scroll, left offset - eg. "scrollX" |
y | number | Scroll, top offset - eg. "scrollY" |
width | number | Viewport width in pixels. |
height | number | Viewport height in pixels. |
Source code: utils/DOM.js (Line 239)
Please login to continue.