constelation / monorepo

Mono repo for constelation's Components, functions, and CONSTANTS
https://constelation.github.io/monorepo/
MIT License
12 stars 3 forks source link

Event.js synthetic vs hammer event #59

Open kylpo opened 7 years ago

kylpo commented 7 years ago

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?

kylpo commented 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

https://github.com/jquery/PEP

API: onMove onDown onUp onEnter onOver

kylpo commented 7 years ago

Some links for future work: