DOM.visualBounds

<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)

doc_phaser
2017-02-14 10:45:02
Comments
Leave a Comment

Please login to continue.