morozig Posted October 29, 2016 Share Posted October 29, 2016 Hello. I started learning pixi a week ago. I easily managed to create sprites, but couldn't set up event handlers. Now I think that the problem is in latest release of pixi. Example:http://pixijs.github.io/examples/index.html?v=v4.0.3#/demos/interactivity.js - sprites are clickablehttp://pixijs.github.io/examples/index.html?v=v4.1.0#/demos/interactivity.js - only 'mouseover' events are working Should I switch to previous version, or set up handlers differently? Quote Link to comment Share on other sites More sharing options...
Zenext Posted October 30, 2016 Share Posted October 30, 2016 Seems like it's the same problem as described here. You can try using 'pointerdown' instead of 'mousedown' & 'touchdown', maybe it helps. Btw both examples work fine for me, I am on Chrome 54.0.2840.71 Quote Link to comment Share on other sites More sharing options...
morozig Posted October 30, 2016 Author Share Posted October 30, 2016 Thanks, Zenext. Changing all "mouse" -> "pointer" in event names indeed helped! I guess that's the proper way to do it now. Quote Link to comment Share on other sites More sharing options...
Kiran Dahibhate Posted August 25, 2019 Share Posted August 25, 2019 have you used pixiContainerOrSprite.interactive = true; ? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.