Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
May 15, 2020 02:43 pm GMT

Who wants to improve the "pull-to-refresh" on DEV?

Quick update on our project: We are getting very close to generalization where more instances of our community software will be available so you can run your cooking or parenting communities.

In the meantime, here's a site behavior which I'd love if someone jumped on:

GitHub logo Pull-to-refresh does not trigger if you do not "come to a halt" at the top of the page. #7886

Our app has really nice pleasant web pull-to-refresh functionality on most pages (not all, we don't want this behavior on some pages like chat, for example).

But the way it works, the user needs to be stopped at the top of the page and then initiate a pull up before it works like a charm.

I've hacked away at this a bit so I know it's possible to fix with some logical adjustments to how the whole thing works, but I think it needs a finer solution than whatever I'd hack together quickly.

Code is here:

https://github.com/thepracticaldev/dev.to/blob/d3dfc70f5a1ed94c781641235f21476e8ddf6773/app/assets/javascripts/lib/pulltorefresh.js

Hope somebody wants to give this a try

Basically "pull-to-refresh" pretty much works, but it's not as smooth as a native in the case where you're continuously scrolling to the top and want to keep scrooling, but it could be.

This has bugged me for a while and I've looked into it enough that I know it can be fixed, it just needs a deep dive and some quality code.

P.S. The post title says "on DEV", but it's really "on yet-to-be-publicly-named opens-source forum software" once we release generalization v0."

Happy coding


Original Link: https://dev.to/devteam/who-wants-to-improve-the-pull-to-refresh-on-dev-5bok

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To