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

Bounce when flicked to the top #49

Open
alexgleason opened this issue Nov 4, 2021 · 3 comments
Open

Bounce when flicked to the top #49

alexgleason opened this issue Nov 4, 2021 · 3 comments

Comments

@alexgleason
Copy link

I noticed the pull to refresh only works if the element is already at the top of the page. I want it to activate even if I start halfway down the page and quickly scroll up. Is there a way to achieve this?

@alexgleason alexgleason changed the title Activate regardless of whether the element is at the top of the page Bounce when flicked to the top Nov 4, 2021
@alexgleason
Copy link
Author

I realize I didn't explain it very well. I think the right way to describe it is a "bounce" animation when flicked to the top of the page for visual feedback.

This library is amazing tho, I've been incorporating it into my social media frontend https://gitlab.com/soapbox-pub/soapbox-fe/ and it makes it feel so much better on mobile.

@d-s-x
Copy link
Contributor

d-s-x commented Dec 1, 2021

pull to refresh only works if the element is already at the top of the page. I want it to activate even if I start halfway down the page and quickly scroll up

If user was able to scroll down (by pulling it up) it must be possible to scroll it back by pulling down. Isn't it natural?

Actually I've seen behavior you described in at least one alternative react-pull-to-refresh library and that was the reason I ditched it in favor of this one.

@chaseFunny
Copy link

This library is really great, but I think scrolling to the top and triggering an event is more in line with people's general understanding. I wonder if it's possible to add this feature?

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

3 participants