Pull to Refresh

I would like to see easy pull-to-refresh behavior find its way into the platform. @briankardell informed me about overscroll-behavior which provides a way to control what happens when the browser encounters a scroll edge. https://drafts.csswg.org/css-overscroll/

Some considerations:

  • Even with overscroll-behavior, when implementing pull-to-refresh yourself you still need to write complex touch event code with CSS transforms to get the effect. This is harder than what is necessary to get pull to refresh on native platforms.
  • If you do implement pull-to-refresh yourself it won’t match the native platform’s look because iOS and Android have different UIs for this. Should it match or should it be consistent across environments? Open question.

I would like to start a group to work towards all of the prerequisites required to get a high-level API for pull-to-refresh. Please let me know if there is implementer interest.


/cc @flackr

Chrome on iOS has this “built in” and it is useful but it is a custom UI.

Hi @PaulmWatson can you explain what you mean? How does Chrome on iOS allow pull to refresh to be implemented?

It is something Google built into the chrome of Chrome iOS and is not something you can toggle or interface with from your website.

See animation of it here;

@PaulmWatson That is refreshing the page. This issue is to allow developers to create pull-to-refresh animations in live pages, like twitter.com does on mobile.