• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Touch on laptops

Participant ,
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

202

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
Community Expert ,
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

 

Votes

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
Participant ,
Jun 24, 2021 Jun 24, 2021

Copy link to clipboard

Copied

Thanks. Just have to figure out how now.

Votes

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
Participant ,
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? 

Votes

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