thmsgbrt / react-simple-pull-to-refresh

npm install react-simple-pull-to-refresh

Home Page:https://www.npmjs.com/package/react-simple-pull-to-refresh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bounce when flicked to the top

alexgleason opened this issue · comments

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?

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.

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.

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?