Skip to content

Undesirable onPress on mobile browsers scrolling fix #808

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

Closed
wants to merge 1 commit into from

Conversation

rxrossi
Copy link

@rxrossi rxrossi commented Feb 9, 2018

Currently canceling a event by moving outside from the Touchable area would not prevent the onPress event of being triggered
This would affect users clicking on a Touchable by accident while scrolling up or down on mobile browsers

It is probably a fix for the issue #731

Canceling a event by moving outside from the Touchable area would not prevent the onPress event of being triggered
This would affect users clicking on a Touchable by accident while scrolling up or down on mobile browsers

It is probably a fix for the issue necolas#731
@rxrossi rxrossi closed this Feb 9, 2018
@rxrossi rxrossi reopened this Feb 9, 2018
@necolas
Copy link
Owner

necolas commented Feb 9, 2018

Canceling a event by moving outside from the Touchable area would not prevent the onPress event of being triggered

Where are you seeing that?

@rxrossi
Copy link
Author

rxrossi commented Feb 10, 2018

Hi, the current behavior is the the same using Chrome for desktop simulating a device or on a actual device: https://imgur.com/a/wgyr9
This code changes the behavior to this: https://imgur.com/a/hgik2

@necolas
Copy link
Owner

necolas commented Feb 12, 2018

I see, this only occurs when the Touchables are not contained within a ScrollView (i.e., you're using browser body scrolling).

@necolas
Copy link
Owner

necolas commented Feb 14, 2018

I don't think this PR works

@necolas necolas closed this Feb 15, 2018
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