Closed namark closed 6 years ago
You are right, that's a bug. Its not easy to make interaction work with this, of course we'll need some adjustments ^_^ Working on it.
Wow, you mean there is hope? Yaaay Thanks!
Ok, lets try new version, I made fast fix but its not complete, it doesnt handle masks of parent layer. Look in "bin" folder of this branch.
Just tried it, seems to be working well for my use case, thanks for the quick fix!
Ok, i found one more issue with that, and just fixed it. Lets close this issue.
I'm using the layers branch and I've got this very basic setup:
If I set the
parentGroup
of a display object tooverlay
it works just fine visually, the object is rendered on top of anything else in thestage
, but if the parent of that object has a mask, while still displayed correctly, the interactions don't work unless the object is within the bounds of the mask.Seems like a pretty nasty problem since the decision is made before even getting to the object that has a parentGroup set https://github.com/pixijs/pixi-display/blob/25a2a0e06269c6fde4241308a54727bffb9405d2/src/InteractionManagerMixin.ts#L45 so I'm hoping that I just overlooked some easy way around this.