-
Notifications
You must be signed in to change notification settings - Fork 57
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
Masks prevent interactions regardless of layers/groups. #17
Comments
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 |
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.
The text was updated successfully, but these errors were encountered: