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

Can multiple viewports share events? #475

Open
JiroMercer opened this issue Jan 29, 2024 · 0 comments
Open

Can multiple viewports share events? #475

JiroMercer opened this issue Jan 29, 2024 · 0 comments

Comments

@JiroMercer
Copy link

JiroMercer commented Jan 29, 2024

Hello!

I'm relatively new to PixiJS and Viewports, but I'm really enjoying working with them!

I've been wondering if there's a way to have two (or even more) separate viewports, each with zoom and dragging functionality, but sharing the same interactions.

Just to provide a bit of context, what I'm trying to achieve is to synchronize the movement of both viewports simultaneously when the user drags one of them. Additionally, I'd like them to zoom in or out to the same part of the viewport when the user performs a zoom action in either of the viewports.

Thanks!!

I forgot to say that viewports doesn't have the same size, so applying the position doesn't work for me :(

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

1 participant