Skip to content

Container Input doesn't work #5506

@vforsh

Description

@vforsh

Version

Phaser 3.52 (3.51 and 3.50.1 were fine)

Description

Here is the scene display graph

  • Scene
    -- Background image
    -- Container
    -- Image

All 3 game objects on the scene have input enabled (via setInteractive() call) but the container behaves like it has no input enabled. It seems like its hit area is located below the background image even though they render in the correct order.

Example Test Code

https://codesandbox.io/s/container-input-issue-my7gl
Try commenting line 21 to see the issue

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions