Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RectButton gets triggered while scrolling, causing it to stop working after some triggers #2625

Closed
AradSharafi opened this issue Oct 8, 2023 · 3 comments
Labels
Platform: Android This issue is specific to Android Repro provided A reproduction with a snack or repo is provided

Comments

@AradSharafi
Copy link

Description

I have a RectButton that contains a horizontal ScrollView with multiple TouchableWithoutFeedback (from react-native) components. When I attempt to scroll through the ScrollView, the RectButton gets triggered and after a few touches, it stops working across the entire project.

By the way, It does not matter ScrollView or TouchableWithoutFeedback imported form react-native or react-native-gesture-handler

untitled.webm

Steps to reproduce

  1. Create a ScrollView that contains multiple TouchableWithoutFeedback components from react-native.
  2. Wrap the ScrollView in a RectButton from react-native-gesture-handler.
  3. Try to scroll through the ScrollView.

Snack or a link to a repository

https://snack.expo.dev/Kbb33iORY?platform=android

Gesture Handler version

2.12.0

React Native version

0.72.3

Platforms

Android

JavaScript runtime

Hermes

Workflow

Expo managed workflow

Architecture

Paper (Old Architecture)

Build type

Debug mode

Device

Android emulator

Device model

No response

Acknowledgements

Yes

@github-actions github-actions bot added Repro provided A reproduction with a snack or repo is provided Platform: Android This issue is specific to Android labels Oct 8, 2023
@m-bert
Copy link
Contributor

m-bert commented Oct 9, 2023

Hi @AradSharafi! I've just tested that on 3 phones + on emulator. It looks ok on physical devices, though the problem sometimes appears on emulator. On what type of device have you tested that?

Also, by "ok" I mean that when you start scrolling immediately, it will scroll. But if you wait a little, RectButton triggers.

@AradSharafi
Copy link
Author

Hi @m-bert,

Thanks for your response. I've tested this on both a physical device and an emulator. The issue has occurred on both platforms.

For the physical devices, I used a Samsung J8 running Android 10 and a Samsung J5 Pro running Android 9. On the emulator, I used an environment set up for Android 13.

I've noticed the issue doesn't just occur when I start scrolling immediately. It also happens when I wait a bit before scrolling. The RectButton triggers in both cases, which seems to be the root of the problem.

Do you have any other suggestions on what I could try to resolve this? Or is there more information you need about my setup or the issue itself?

Thanks in advance for your help!

@j-piasecki
Copy link
Member

I believe it was fixed by #2693. Let me know if it didn't help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Platform: Android This issue is specific to Android Repro provided A reproduction with a snack or repo is provided
Projects
None yet
Development

No branches or pull requests

3 participants