Open kylpo opened 7 years ago
I'm leaning towards using Pointer Events and its polyfill.
"The pointer is a hardware-agnostic device that can target a specific set of screen coordinates. Having a single event model for pointers can simplify creating Web sites and applications and provide a good user experience regardless of the user's hardware. However, for scenarios when device-specific handling is desired, pointer events defines a property to inspect the device type which produced the event."
http://caniuse.com/#search=pointer%20events
API:
onMove
onDown
onUp
onEnter
onOver
Some links for future work:
Cancelling a Hammer event does not cancel React's SyntheticEvent.
So, onTap and onClick really are different. Any ways to fix this? Standardize on just Hammer or React?