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

feat: add enableManualScroll props, controls whether manual scrolling #8

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

wqhui
Copy link

@wqhui wqhui commented Oct 25, 2024

This is a small but AMAZING library, but while using it I found that I couldn't manually control the scrolling.

I copied the code and implemented and verified this function in my project, so I submitted this PR, hope I can make some contribution

I added a parameter of enableManualScroll. After turning on this parameter, I used react-native-gesture-handler to listen for gestures. pause automatic scrolling when touched, and update the offset of the animation according to the gesture to complete manual control of scrolling, and restart automatic scrolling after the gesture ends

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.

1 participant