Phaser API Documentation

  Version: 
<readonly> isTop: boolean

Description:

Are the event listeners hooked into window.top or window?

This is set during the boot sequence. If the browser does not have access to window.top, such as in cross-origin iframe environments, this property gets set to false and the events are hooked into window instead.

Type:
boolean
Since: 3.50.0