Skip to content

sjvc/impactjs-cocoonjs_touchevent_fix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

About this ImpactJS plugin

This plugin fixes touch events when running an ImpactJS game using CocoonJS

Installation

  • 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)

About

Plugin for ImpactJS: fixes touch events when running using CocoonJS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published