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

Disable BottomSheet swipe gesture to navigate backwards #4215

Merged
merged 2 commits into from
Nov 5, 2021

Conversation

dcalhoun
Copy link
Member

@dcalhoun dcalhoun commented Nov 5, 2021

Related PRs

Description

Relates to WordPress/gutenberg#36231. The bottom sheet (react-native-modal) and sub sheet navigation (React Navigation) have competing gesture handlers that do not work well together at this time. E.g it is possible to trigger both simultaneously. Until we add logic to prevent the simultaneous gesture, we are disabling the swipe back gesture for sub sheet navigation. We have discussed replacing the BottomSheet logic entirely, so that may be a better time to address this gesture issue.

To test: See WordPress/gutenberg#36271.

PR submission checklist:

  • I have considered adding unit tests where possible.
  • I have considered if this change warrants user-facing release notes more info and have added them to RELEASE-NOTES.txt if necessary.

@dcalhoun dcalhoun added the [Type] Enhancement Improves a current area of the editor label Nov 5, 2021
@dcalhoun dcalhoun added this to the 1.66.0 (18.7) milestone Nov 5, 2021
@dcalhoun dcalhoun self-assigned this Nov 5, 2021
@dcalhoun dcalhoun marked this pull request as ready for review November 5, 2021 21:02
@dcalhoun dcalhoun requested a review from twstokes November 5, 2021 21:02
Copy link
Contributor

@twstokes twstokes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! (Review)

@peril-wordpress-mobile
Copy link

Wanna run full suite of Android and iOS UI tests? Click here and 'Approve' CI job!

@dcalhoun dcalhoun enabled auto-merge November 5, 2021 21:44
@dcalhoun dcalhoun merged commit 097921e into develop Nov 5, 2021
@dcalhoun dcalhoun deleted the feature/disable-bottom-sheet-gestures branch November 5, 2021 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Enhancement Improves a current area of the editor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants