[Touchable] Scrolling a native UIScrollView triggers `onPress` #12049

Closed
samwize opened this Issue Jan 24, 2017 · 2 comments

Comments

Projects
None yet
4 participants
@samwize

samwize commented Jan 24, 2017

Description

I embedded a TouchableOpacity in an iOS UIScrollView.

When I scroll the UIScrollView starting with my finger on the TouchableOpacity, scroll a distance then lift my finger, onPress occurs. It should not have hit onPress when scrolling.

Related issue: #3452 @majak

Reproduction

Embed a TouchableOpacity in a native UIScrollView.

Scroll with finger on the TouchableOpacity, and lift up.

Solution

Cancel Touchable event when scrolling.

Additional Information

  • React Native version: 0.38.1
  • Platform: iOS
  • Operating System: MacOS
@shergin

This comment has been minimized.

Show comment
Hide comment
@shergin

shergin Jan 24, 2017

Contributor

Duplicates #3280.
This issue was fixed in c68a708 a week ago. 😃 Right now you can use workaround discussed in #3280 though.

Contributor

shergin commented Jan 24, 2017

Duplicates #3280.
This issue was fixed in c68a708 a week ago. 😃 Right now you can use workaround discussed in #3280 though.

@hramos

This comment has been minimized.

Show comment
Hide comment
@hramos

hramos May 25, 2017

Contributor

Closing this issue because it has been inactive for a while. If you think it should still be opened let us know why.

Contributor

hramos commented May 25, 2017

Closing this issue because it has been inactive for a while. If you think it should still be opened let us know why.

@hramos hramos closed this May 25, 2017

@hramos hramos added the Icebox label May 26, 2017

@facebook facebook locked as resolved and limited conversation to collaborators May 29, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.