Touch tap results in mouse events
@hartzis ci sta già lavorando.
Dal 19/2/2021.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Describe the bug
Tapping in the component tracked by the handlers causes multiple handlers to be called
- The
onTaphandler is called with event of typetouchend - The
onSwipinghandler is called with some delta values - The
onTaphandler is called twice, both with event of typemouseup
Steps or Sandbox to reproduce
Observe the following codesandbox application console log when touch-tapping in the blue area.
https://codesandbox.io/s/react-swipeable-tap-bug-yrbyu
Expected behavior
WHEN both trackMouse and trackTouch options are set to true
GIVEN a single touch tap in the component
THEN only onTap handler is called, with one event of type touchend
Device/Browser
Tested on
- Dell XPS with touch screen, running Fedora 34, in Firefox, Chrome and Brave
- Samsung Galaxy S10, running Android 11, in Chrome and Brave
Sliding/swiping works very well in all the mentioned environments, but a single touch tap also gives the same result in all of them.
Additional context
The react-swipeable hook as such is very time saving and smooth! Thanks for the great work!
- Lingua principale
- TypeScript
- Stelle
- 2.1k
- Fork
- 149
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di FormidableLabs/react-swipeable
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 25/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 30/100
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 30/100
FormidableLabs/react-swipeable#332 · 2 commenti ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
Tutte le issue di FormidableLabs/react-swipeable
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
bcgov/bc-wallet-mobile#4761 · 1 commento ·
-
external-issue to-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
-
area-deployment area-integrations triage:bot-seen
Difficoltà 2/5 Mezza giornata Idoneità per principianti 86/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
-
refactor
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100