pixi-viewport
pixi-viewport copied to clipboard
Viewport Inside Of Viewports
Hi, been working with the library. Very powerful, very interesting. However, I hit a weird snag and I'm trying to figure out a way around this.
When Viewports are either nested as children, I have found that interactive elements of said Viewport stop working entirely. I cannot get interactive objects that sit within a child viewport to function. None of the events are working with them, despite passing the child viewport the same interaction plugin as it's parent, which would suggest it's picking up the same things. I was wondering if there was a way around this? Or even if this is even supposed to be how Viewports are meant to be used?
Thanks.
I've not tested viewport in viewports. I don't see why it wouldn't work but there may be some quirks. If it's not working then it'll probably need some debugging to figure out why. Happy to accept a PR if you're interested in tracking down the issues. I haven't used viewports in viewports and none of my current projects have this requirement.
Considering that Viewports are based on Containers, they appear to be susceptible to the same problems. And apparently, this is still an issue, I think?
https://github.com/pixijs/pixijs/issues/6509