Skip to main content
Inspiring
Jun 24, 2021 2:07 PM UTC
Question

Touch on laptops

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?

This topic is closed to new replies. Start a new post to keep the conversation going.

3 replies

JoãoCésar17023019
Community Expert
Community Expert
Jun 24, 2021 3:10 PM UTC

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

 

Translate
Inspiring
Jun 24, 2021 4:40 PM UTC

Thanks. Just have to figure out how now.

Translate