elk-zone / elk

A nimble Mastodon web client
https://elk.zone
MIT License
5.25k stars 536 forks source link

Add pull-to-refresh #94

Open Snugug opened 1 year ago

Snugug commented 1 year ago

Web apps installed on iOS have problems resuming, which can result in an app trapped in a seemingly stable but actually unusable/behind experience. Adding pull-to-refresh (maybe two staged, one to update timeline, one to reload app) can help resolve this problem

LittleSound commented 1 year ago

I think I can implement this feature

LittleSound commented 1 year ago

On the phone we can scroll down and refresh, but how do we deal with it on the computer?

sxzz commented 1 year ago

@LittleSound On macOS, we have the same behavior while using trackpad.

patak-dev commented 1 year ago

When we aren't in mobile, we discussed yesterday with @danielroe and our current thinking is that we should follow the official Mastodon client here: https://mas.to/public so, if you are at the top of the timeline, then new posts keep appearing as they are available if you scroll down and are already checking something, they don't anymore to avoid shifting the layout on you (it would be cool if it is kind of like a virtual list so the posts are added (you can scroll back smoothly to the new posts but without layout shift)