I will test out hammer.js and report back!

Without testing, the differences are:
* hammer.js support *way* more events
* hammer.js is 10 times the size of pointer.js (minified to minified)

I'll evaluate performance on B2G, but pointer.js was built with B2G perf in
mind.

Thanks for pointing that lib out!

~potch


On Fri, May 24, 2013 at 2:14 PM, David Ascher <[email protected]> wrote:

> Cool. Can you compare and contrast with something like hammer.js?
>
> -- da
> (typed with thumbs)
>
>
>
> -------- Original message --------
> From: Matt Claypotch <[email protected]>
> Date:
> To: [email protected]
> Subject: Introducing pointer.js
>
>
> 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
>
_______________________________________________
dev-webapps mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-webapps

Reply via email to