Phaser API Documentation

topOnly: boolean


When set to true (the default) the Input Plugin will emulate DOM behavior by only emitting events from the top-most Game Objects in the Display List.

If set to false it will emit events from all Game Objects below a Pointer, not just the top one.

Default: true
Since: 3.0.0
Source: src/input/InputPlugin.js (Line 174)