-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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] Fix taps triggering while swiping #7459
Conversation
Oh nice! Mind reverting #7448 and verifying it still works with your fix? Also, do you have an upstream PR to link to? |
Note I filed callstack/react-native-pager-view#960 with another minimal repro. |
Yep, I've tested callstack/react-native-pager-view#960 and it works great, no stray taps! This branch already doesn't include #7448, do you mean I should rebase and commit a revert of #7448 here? Sorry I'm fairly new to this 😅 |
Yeah, I think it would make sense to push a revert of it into this PR. |
Sometimes it's good to send an incomplete PR to start a discussion since the maintainers there started looking into the issue as well. |
Im find same behavior on ios 17.7.2, bsky 1.96.4.818 iosTapTriggeringWhileSwiping.2.mp4 |
Good news, I opened a slightly modified PR upstream which doesn't break nested pagers and doesn't break the drawer and overall should make more sense :) |
Fantastic work. |
This comment was marked as resolved.
This comment was marked as resolved.
c4694e6
to
5f136e1
Compare
5f136e1
to
88b1878
Compare
OK, I'm also layering on 88b1878 for consistency with RN code though not sure it does anything for our case. |
A more proper, native-level fix for the issue described in #7312.
The root of the issue was callstack/react-native-pager-view#954, ie. a cancel event wasn't dispatched to the pager's children when it started scrolling. The patch uses notifyNativeGestureStarted to take care of that. It also disables the requestDisallowInterceptTouchEvent calls because they mess with the Drawer