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 [email protected] https://lists.mozilla.org/listinfo/dev-webapps
