FormidableLabs / FormidableLabs/react-swipeable

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

Abierto
#327 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
TypeScript
Estrellas
2.1k
Forks
149
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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 👍

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Comienza leyendo el comportamiento existente del hook react-swipeable para onSwiping y el manejo de la liberación del toque. Determina si los eventos swipe-start y swipe-end son compatibles o requerirían una nueva API; después, define el momento esperado de los eventos y verifica el comportamiento de mantener pulsado al estilo de un joystick. El issue no menciona archivos fuente ni tests.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
react, typescript
Área
frontend
Tipo de issue
Nueva funcionalidad
Dificultad
5/5
Tiempo estimado
Más de una semana
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
25/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.