caymanbruce Posted January 23, 2017 Share Posted January 23, 2017 Because the event object passed in these input events are different from the events in dom, I am not sure if they use preventDefault() by default. Or do I have to get the original event object and do a `event.data.originalEvent.preventDefault();` first? Quote Link to comment Share on other sites More sharing options...
Sambrosia Posted January 24, 2017 Share Posted January 24, 2017 Yes. InteractionManager automatically calls preventDefault() on the original event if your InteractionManager object's autoPreventDefault property is true. Docs page: http://pixijs.download/release/docs/PIXI.interaction.InteractionManager.html#autoPreventDefault You can also search for where it's used in the source if you're curious: https://github.com/pixijs/pixi.js/blob/dev/src/interaction/InteractionManager.js 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.