FormidableLabs / react-swipeable

React swipe event handler hook
https://commerce.nearform.com/open-source/react-swipeable
MIT License
1.99k stars 146 forks source link

how can I fire an event for swipe start and swipe end? #327

Open storycoding opened 1 year ago

storycoding commented 1 year ago

I'm attempting to simulate a joystick behaviour using your library.

Expectation:

The solution I have in mind would be to fire an event when the swiping starts, and another when the touch is released.

What is your suggestion to achieve this behavior? Thank you for your time 👍