-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
Swipe / scroll actions on Flatlist gets registered as click event #47151
Labels
Component: FlatList
Needs: Author Feedback
Needs: Repro
This issue could be improved with a clear list of steps to reproduce the issue.
Comments
react-native-bot
added
Component: FlatList
Needs: Author Feedback
Needs: Repro
This issue could be improved with a clear list of steps to reproduce the issue.
labels
Oct 22, 2024
|
|
@srimarajQuince Please provide a valid reproducer using either Snack or this template. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Component: FlatList
Needs: Author Feedback
Needs: Repro
This issue could be improved with a clear list of steps to reproduce the issue.
Description
I have a my page like this :
{children}Sometimes while user scrolls /swipes to. go back. the click event gets triggered( navigating to a screen)
I read few issues , the only solution i got so far is to track the scroll with handlePressIn & handlePressOut , then calculate the pageX,pageY difference do decide whether its a drag or click action.
Adding this affects my scroll performance , (large list of products).
Any solution to this, without compromising the app performance?
Steps to reproduce
n/a
React Native Version
0.75.4
Affected Platforms
Runtime - iOS
Output of
npx react-native info
Stacktrace or Logs
Reproducer
n/a
Screenshots and Videos
No response
The text was updated successfully, but these errors were encountered: