-
-
Notifications
You must be signed in to change notification settings - Fork 982
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
Android: touch events are executed twice when talkback is enabled #2808
Comments
Hey! 👋 The issue doesn't seem to contain a minimal reproduction. Could you provide a snack or a link to a GitHub repository under your username that reproduces the problem? |
Hi @IvanIhnatsiuk! I've just tested that on my Samsung S20+ and Pixel 6a emulator - both work fine. To test that, I've added logs into onPress callbacks in |
@m-bert Hello, I think you can reproduce this in your example app. To reproduce this, I simply updated the App.tsx file to
Screen.Recording.2024-03-28.at.10.15.14.movPlease, let me know if you need more details :) |
Hello @IvanIhnatsiuk! I've copied your code and everything is fine: Nagranie.z.ekranu.2024-04-2.o.10.35.15.movIt also works on my physical Samsung S20+ |
I can see that you're using another emulator, I'll try to test that on Pixel 7 |
Okay, I've tested that on Pixel 7 Pro emulator and I still wasn't able to reproduce this issue. |
@m-bert Sorry for the long reply, could you please try this code?
|
Thank you @IvanIhnatsiuk! Now I can reproduce this issue. Seems like the problem lies in additional |
Yes, the problem is in additional view element. However, we need to add this view to make buttons accessible: https://docs.swmansion.com/react-native-gesture-handler/docs/components/buttons/ |
Also, Could you please remove "can't repro" label? 🙂 |
Sure, done 😄
I'm aware of that. As far as I can tell buttons should work without this |
Hey @IvanIhnatsiuk, could you please let me know if PR #3002 has fixed this issue for you? |
Description
Hello, thanks for your library it is really good and very powerful 😎 .
I found an issue that when talkback is enabled, the onPress call occurs multiple times when interacting with the buttons.
Screen.Recording.2024-03-15.at.17.07.21.mov
In the video the goBack callback was called twice, so I was navigated to the Accounts tab :)
Steps to reproduce
Snack or a link to a repository
https://github.com/software-mansion/react-native-gesture-handler
Gesture Handler version
2.15.0
React Native version
0.72.10
Platforms
Android
JavaScript runtime
Hermes
Workflow
React Native (without Expo)
Architecture
Paper (Old Architecture)
Build type
Debug mode
Device
Android emulator
Device model
Pixel 7 pro
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered: