Touch on laptops

Explorer ,
Jun 24, 2021 Jun 24, 2021

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?

TOPICS
How to , Tablet

Views

127

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Jun 24, 2021 Jun 24, 2021

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.

 

image.png

 

https://www.w3schools.com/jsreF/obj_touchevent.asp

 

Please let us know.

 

Regards,

JC

 

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jun 24, 2021 Jun 24, 2021

Copy link to clipboard

Copied

Thanks. Just have to figure out how now.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jul 01, 2021 Jul 01, 2021

Copy link to clipboard

Copied

LATEST

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? 

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines