Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Will/Does IE10 Support Touch Events?

I'm looking at doing a project that would target Internet Explorer 10 using a touch screen. I don't currently have a touch screen handy, but need to know if Internet Explorer 10 does or will support DOM touch events.

like image 462
Brian Fisher Avatar asked Aug 08 '11 18:08

Brian Fisher


1 Answers

Update: Touch Events are in development in Internet Explorer.

While IE10 will not support the touchstart and touchend type of events, it will support an arguably superior model consisting of Pointers. These generic pointers capture input from pens, mice, and fingers. A great primer was given in the post Touch Input for IE10 and Metro style Apps, dated Sept, 2011.

You should be able to get the older touch model to work well with the MSPointer model with just abit of feature-detection and clever-scripting:

var elm = document.getElementById("#foo"),
    evt = window.navigator.msPointerEnabled ? "MSPointerDown" : "touchstart";

elm.addEventListener(evt, handler, false);

More on Pointer and Gesture events can be found here: http://msdn.microsoft.com/en-US/library/ie/hh673557.aspx

Important Developments

  • The W3C has formed a Working Group based on Microsoft's Pointer model.
  • Hand.js: a polyfill for supporting pointer events on every browser
like image 151
Sampson Avatar answered Sep 30 '22 12:09

Sampson