jake_higgins
jake_higgins

Reputation: 43

Does Internet Explorer 11 support Multi-Touch?

I am working on a multi-touch drawing application which works great in Chrome and Firefox, but I can't get anything from Microsoft as far as a straight forward answer goes as to whether or not multi-touch (ie: event.touches) is supported in Internet Explorer 11.

Right now a code snip that works in other browsers is as follows:

window.addEventListener("touchstart", onTouchStart, true);

function onTouchStart(event) {
  console.log(event.touches.length);
}

In chrome it will print out the number of touches, but I get nothing in Internet Explorer. If anyone knows if this is a problem with IE I would be appreciative.

Thanks.

Upvotes: 4

Views: 1475

Answers (1)

c69
c69

Reputation: 21517

IE has different way to do it: W3C Pointer Events http://msdn.microsoft.com/en-us/library/ie/dn433244.aspx

p.s.: if you simply want to test for multi-touch support, use navigator.msMaxTouchPoints.

if (navigator.msMaxTouchPoints > 1) { ... }

Upvotes: 2

Related Questions