Jump to content

touch events in cocoon.io and canvas+ ?


tonyw
 Share

Recommended Posts

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

 

cocoon.png

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...