Skip to content

Disable panning in native picker dialogs #1071

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

Merged
merged 3 commits into from
Dec 13, 2020

Conversation

ethanshar
Copy link
Collaborator

Description

Disable panning in native picker dialogs since they contains a wheel picker, scrolling thru the picker conflicts with the dialog panning. So it's best to just disable the panning in this case.

Changelog

Fix wheePicker swipe conflicts with dialog panning by disabling the dialog panning

@@ -83,7 +83,7 @@ class PickerDialog extends BaseComponent {
render() {
const dialogProps = extractComponentProps(Dialog, this.props);
Copy link
Contributor

Choose a reason for hiding this comment

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

this.props already contains panDirection as null, passed from NativePicker.
For some reason extractComponentProps not populating it when spreading passed props

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

You are right, I missed that.
It should have already worked.
Checking...

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed (kinda)

@ethanshar ethanshar requested a review from mendyEdri December 13, 2020 16:36
@mendyEdri mendyEdri merged commit 4413ab1 into master Dec 13, 2020
@ethanshar ethanshar deleted the fix/NativePicker_disablePanning branch March 8, 2021 09:02
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.

2 participants