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

Taps on List Items when scroll is at the very top do not trigger onPress events in the children #10

Open
duro opened this issue Apr 26, 2018 · 3 comments

Comments

@duro
Copy link

duro commented Apr 26, 2018

But as soon as I scroll even a little bit down, taps will trigger onPress in the children?

Any idea what could cause those events in children not to fire?

@WillKre
Copy link

WillKre commented May 28, 2018

@duro did you end up figuring out why this is? Having the exact same problem

@LimAlbert
Copy link

Had the same issue, found out that

_handleMoveShouldSetPanResponder(e, gestureState) {
   return !this.state.isScrollFree;
}

is preventing the onPress event to trigger

What I did is modifying the function to check if dx/dy are not 0

_handleMoveShouldSetPanResponder(e, gestureState) {
  return !(gestureState.dx === 0 && gestureState.dy === 0) && !this.state.isScrollFree;
}

Not sure if it's the right way to handle this, but it seems to work for now !

@Nezran
Copy link

Nezran commented Feb 13, 2019

Thanks a lot @LimAlbert ! It work

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

No branches or pull requests

4 participants