Copy link to clipboard
Copied
I completed a Canvas project recently to which I added:
createjs.Touch.enable(stage);
This worked perfectly for adding touch interactivity on tablets and phones, but I just discovered that it doesn't work on a touch-enabled laptop. Why not? And of course, how can I ensure it does?
Copy link to clipboard
Copied
Hi.
According to the offical documentation, this feature currently "supports W3C Touch API (iOS and modern Android browser) and the Pointer API (IE), including ms-prefixed events in IE10, and unprefixed in IE11".
I cannot test here, but I think you're gonna have to add the touch events yourself to make sure your output will work in these kind of devices.
https://www.w3schools.com/jsreF/obj_touchevent.asp
Please let us know.
Regards,
JC
Copy link to clipboard
Copied
Thanks. Just have to figure out how now.
Copy link to clipboard
Copied
Still trying to figure this out, but in the iterim, do you know if the original code,
createjs.Touch.enable(stage);
would make touch work on a Chromebook?