Bug: PIXI Events not respecting zOrder hierarchy of PIXI Layers plugin
edev2020 opened this issue · 2 comments
edev2020 commented
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 commented
+1 upvote
pietrovismara commented
Having the same issue