This plugin fixes touch events when running an ImpactJS game using CocoonJS
- Move cocoonjs_touchevent_fix.js to your ImpactJS project's plugin folder:
[PROJECT]/lib/plugins/cocoonjs_touchevent_fix.js
- Add the plugin to your main.js file
ig.module( 'game.main' ) .requires( 'impact-game', ... 'plugins.cocoonjs_touchevent_fix', ... )
- Now touch events are working correctly in CocoonJS (and also in web browsers, of course)