callstack / callstack/react-native-pager-view
Android: Touchables trigger when swiping in the wrong horizontal direction on first/last slide
- Lingua principale
- TypeScript
- Stelle
- 3.4k
- Fork
- 476
- Merge medio
- 10g 21h
- PR unite (30g)
- 2
Descrizione
## Environment
```
"react-native": "0.72.5",
"react-native-tab-view": "*",
"react-native-pager-view": "6.0.1",
"react-native-gesture-handler": "~2.8.0"
```
## Description
I recently upgraded from a really old version of react-native-tab-view and can't seem to fix this one.
When swiping to the right on the first tab, or to the left on the last tab (so in the "wrong" direction) it triggers a tap inside my flatlist/scrollview touchables. Everything is fine when you swipe in the correct direction.
I would expect that a swipe over a touchable would not trigger a tap, even if it's in the wrong direction.
## Reproducible Demo
I have made a reproduceable snack here:
https://snack.expo.dev/@svrnlombaert/android-bug-react-native-tab-view?platform=android
Video:
https://github.com/callstack/react-native-pager-view/assets/2846986/f318c609-f5fe-4a6e-ac11-2f119390b0e5
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia eseguendo lo Snack riproducibile collegato con React Native 0.72.5, react-native-pager-view 6.0.1 e react-native-gesture-handler ~2.8.0 su Android, quindi confronta gli swipe sulla prima e sull'ultima scheda con il video. Il lavoro è completato quando uno swipe nella direzione orizzontale sbagliata su un FlatList o ScrollView interattivo non attiva più il relativo tap.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- android, react-native, typescript
- Ambito
- mobile-dev
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100