FormidableLabs / FormidableLabs/react-swipeable
how can I fire an event for swipe start and swipe end?
- Dominant language
- TypeScript
- Stars
- 2.1k
- Forks
- 149
- PR merge metrics
- No merged PRs in 30d
Description
I'm attempting to simulate a joystick behaviour using your library.
Expectation:
- A swipe and hold should fire the `onSwiping` event
- The continuous gesture of swiping should not be necessary
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 👍
Contributor guide
Research direction
Start by reading the existing react-swipeable hook behavior for onSwiping and touch-release handling. Determine whether swipe-start and swipe-end events are supported or would require a new API, then define the expected event timing and verify the joystick-style hold behavior. The issue does not name source files or tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100