LordPower Posted July 14, 2016 Share Posted July 14, 2016 Hi, I've already done a lot with pixi.js and got most of it to work. But and can't get right mouse button clicks to work. To make it short they aren't working in this official examplehttp://pixijs.github.io/examples/index.html?s=demos&f=interactivity.js&title=Interactivity 'mousedown' isn't triggered by a right click. The 'click' event actually does get triggered. So is it a bug? Is there any workaround? Thanks in advance Quote Link to comment Share on other sites More sharing options...
themoonrat Posted July 15, 2016 Share Posted July 15, 2016 The available events are 'mousedown','mouseup','rightdown','rightup','click','rightclick','mousemove','mouseover','mouseout','mouseupoutside','rightupoutside' so you need to listen to rightdown for right mouse button presses Quote Link to comment Share on other sites More sharing options...
LordPower Posted July 16, 2016 Author Share Posted July 16, 2016 Ah ok thanks. But is that actually documented anywhere because I went through a lot of forums posts etc. and never found that. They were all saying I have to check the eventdata etc. Quote Link to comment Share on other sites More sharing options...
themoonrat Posted July 16, 2016 Share Posted July 16, 2016 It isn't outputted to the JSDoc, no. I'll do a PR at some point to add the listenable events to the interaction manager documentation Quote Link to comment Share on other sites More sharing options...
LordPower Posted July 16, 2016 Author Share Posted July 16, 2016 ok thanks 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.