-
-
Notifications
You must be signed in to change notification settings - Fork 168
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
Bug: click handlers not working on sprites #416
Comments
Seems related to this issue: #402 |
Hi! Are there any updates?) |
Click events are also not working for me. I guess |
Hey I think you need to import pixi events to get it to work.
This is mentioned in the FAQ of the pixi-react 'About' page: https://pixijs.io/pixi-react/ I tried adding the import in your stackblitz example and that did indeed resolve this problem. |
Current Behavior
I've found a bug with the Sprite click handlers. See repo and 20sec video for clear explanation.. Basically if a Sprite Texture is in the stage, and the page is refreshed, the click handlers on the image Sprite will work, comment out the Texture and refresh and the click handlers stop working.
Expected Behavior
Click handlers should always work
Steps to Reproduce
https://stackblitz.com/edit/vitejs-vite-21bwq5?file=src%2FApp.tsx
CleanShot.2023-02-18.at.10.52.03.mp4
Environment
Possible Solution
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: