See also the polyfill by Microsoft for the Pointer Event spec: http://handjs.codeplex.com/
Also, note that Firefox and Chrome (maybe others) have a no-delay click event when you use a fixed viewport.
On 24/05/13 23:12, Matt Claypotch wrote:
A common problem web developers face is abstracting mouse and touch events. You can do feature detection, but some devices will issue both! To help alleviate this, I created pointer.js, located at https://github.com/mozilla/pointer.js . It uses CustomEvent to create a 'pointer' type of event that abstracts mouse and touch events. The main feature of note is a 'pointerclick' event that uses various heurstics to have a responsive touch event that is resistant to errant clicks from scrolling or finger grazes. Try it out and let me know what you think! Pull Requests/Issues/feedback very welcome. ~potch
_______________________________________________ dev-webapps mailing list dev-webapps@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-webapps