tonyw Posted May 7, 2017 Share Posted May 7, 2017 hi, just trying to get my pixi app running via cocoon.io's developer app. All is good but I don't get any touch events. I do this - Cocoon.Touch.enable(); renderer.plugins.interaction.autoPreventDefault = false; renderer.plugins.interaction.on('touchend', onClick); This works using a regular browser, but not on a cocoon canvas+ via their developer app. I notice cocoon is giving a bunch of errors though - Javascript Exception ( Tag: 'touchstart'): ReferenceError:: TouchEvent is not defined... and these come from somewhere in pixi it seems? I guess the real question is - how to detect touch events in cocoon / canvas+ ... any ideas? thanks tony 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.