JedWatson / react-tappable

Tappable component for React
http://jedwatson.github.io/react-tappable/
MIT License
863 stars 90 forks source link

Ability to cancel onTap event when responding with onPress event #42

Closed amunda closed 7 years ago

amunda commented 9 years ago

In my app, i am listening to both onTap and and onPress event and wants to react differently for both of them. Wondering if there is a way to cancel onTap event when i have already responded on onPress event.

So for eg. when users presses button for a longer time, we wanted to show different options vs when user taps the button, we just respond on the default options.

Currently it seems like it always dispatches onTap event regardless of onPress event.

hilkeheremans commented 9 years ago

See also #57

dcousens commented 7 years ago

Closing in favour of #57