callstack / callstack/react-native-pager-view

Android: Touchables trigger when swiping in the wrong horizontal direction on first/last slide

オープン
#776 コメント 3 件 リアクション 1 件 担当者 0 名 GitHub で見る
主要言語
TypeScript
スター
3.4k
フォーク
476
平均マージ
10日 21時間
マージ済み PR(30日)
2

説明

## 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

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず、Android で React Native 0.72.5、react-native-pager-view 6.0.1、react-native-gesture-handler ~2.8.0 を使ってリンクされた再現可能な Snack を実行し、最初と最後のタブでのスワイプを動画と比較します。FlatList または ScrollView のタッチ可能な領域上で水平方向の間違った方向にスワイプしても、そのタップがトリガーされなくなれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
android, react-native, typescript
領域
mobile-dev
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。