FormidableLabs / FormidableLabs/react-swipeable

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

Offen
#327 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
TypeScript
Sterne
2.1k
Forks
149
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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 👍

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.