Skip to main content
Inspiring
June 24, 2021
Question

Touch on laptops

  • June 24, 2021
  • 1 reply
  • 341 views

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 has been closed for replies.

1 reply

JoãoCésar17023019
Community Expert
Community Expert
June 24, 2021

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

 

Inspiring
June 24, 2021

Thanks. Just have to figure out how now.