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

Code for live example throws error when clicking inside canvas #33

Open
HamifSafiAlRonik opened this issue Sep 8, 2022 · 3 comments
Open

Comments

@HamifSafiAlRonik
Copy link

I tried the code in the live example and it shows properly but clicking anywhere throws this error
image

I'm using pixi 6.5.2. I need the ability for user to click in the viewport.

@davidfig
Copy link
Collaborator

davidfig commented Sep 8, 2022

Maybe something changed in pixi.js? The demo works off github when clicking, so it might be a mismatch between the library and the dependencies, or something in your click event. Trace it and let me know if it's a problem with the library.

@HamifSafiAlRonik
Copy link
Author

Maybe something changed in pixi.js? The demo works off github when clicking, so it might be a mismatch between the library and the dependencies, or something in your click event. Trace it and let me know if it's a problem with the library.

Enforcing the versions in the github repo's yarn.lock worked(pixijs 6.0.1 and older version of pixiviewport). That said, there shouldn't have been any f***up since I initially tried the version you get from npm installing each of the pixi packages without version restrictions. You may want to investigate further.

@davidfig
Copy link
Collaborator

davidfig commented Sep 8, 2022

ok. thanks.

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

2 participants