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

Prevent Drawer gesture conflicting with Suggestions scroll #7468

Merged
merged 2 commits into from
Jan 17, 2025

Conversation

gaearon
Copy link
Collaborator

@gaearon gaearon commented Jan 17, 2025

Makes sure this gesture doesn't conflict with the drawer:

conflict.mov

Previously the behavior was not consistent (particularly on Android) and scrolling left could make the drawer appear out of the blue. Not anymore.

Implementation-wise, this reuses the approach from #7424. It's not perfect (ideally the drawer would take precedence on a swipe left when the scroll view is resting at x = 0) but we're not going to bother with that.

Test Plan

See video above. This was previously sometimes getting stuck on Android. Particularly on device.

Try Android (verified works on device), iOS (I only tried sim but will test on TF).

No changes on web.

@arcalinea arcalinea temporarily deployed to fix-sugg-swipe-android - social-app PR #7468 January 17, 2025 00:55 — with Render Destroyed
Copy link

Old size New size Diff
6.87 MB 6.87 MB 143 B (0.00%)

@gaearon gaearon merged commit 9e3f2f4 into main Jan 17, 2025
7 checks passed
@gaearon gaearon deleted the fix-sugg-swipe-android branch January 17, 2025 01:17
estrattonbailey pushed a commit that referenced this pull request Jan 17, 2025
* Extract BlockDrawerGeesture

* Block drawer when scrolling interstitials

(cherry picked from commit 9e3f2f4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants