Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: PIXI Events not respecting zOrder hierarchy of PIXI Layers plugin #104

Open
edev2020 opened this issue Jun 1, 2023 · 2 comments
Open

Comments

@edev2020
Copy link

edev2020 commented Jun 1, 2023

Current Behavior

When you click over an sprite with bigger zOrder but that was drawn before the one with smaller zOrder the click will go to the sprite with smaller zOrder instead.
It looks like the PIXI native event system isn't respecting the PIXI Layers zOrder hierarchy even though "console.log(layer._sortedChildren) shows that the sprites were drawing in the right zOrder).

Expected Behavior

The click should not pass to the sprites below the clicked sprite.

Steps to Reproduce

PIXI Layers Example (Bugged): https://www.pixiplayground.com/#/edit/0ycJnTLAu3lJu4RHq3Dee
PIXI Containers Example (Working fine): https://www.pixiplayground.com/#/edit/lL7_CdWFKhdzspEFjQN87

Environment

  • pixi.js version: 7.1.2
  • Browser & Version: 113.0.5672.127
  • OS & Version: Windows 10

Possible Solution

No response

Additional Information

No response

@JPM87
Copy link

JPM87 commented Oct 17, 2023

+1 upvote

@bigtimebuddy bigtimebuddy transferred this issue from pixijs/pixijs Oct 17, 2023
@pietrovismara
Copy link

Having the same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants