misskey icon indicating copy to clipboard operation
misskey copied to clipboard

Pull to refresh for PWA

Open mackiexx opened this issue 3 years ago • 2 comments

Summary

It will be great to have pull to refresh in PWA because when you create a note, it doesn't show automatically on top and a pull to refresh is needed to fetch the post without having to close and open the app again. Also it will be nice if the new post can show in real time without having to close and open the app or refresh.

mackiexx avatar Oct 09 '22 08:10 mackiexx

You can pull to refresh on Chromium-based PWAs. Pull to refresh behavior is dependent on the browser, not the website/pwa.

ThatOneCalculator avatar Oct 09 '22 17:10 ThatOneCalculator

Using the browser pull to refresh will refresh the whole app. That's overkill for just wanting your timeline to update.

Pull to refresh on the timeline is a very reasonable suggestion.

Trif4 avatar Nov 16 '22 16:11 Trif4

やりたいけどまともなライブラリが無いため自前で実装する必要があり面倒

syuilo avatar Jun 06 '23 02:06 syuilo

https://github.com/BoxFactura/pulltorefresh.js/ はVueもしくはMisskey Webと相性が悪いのかレンダリングがおかしくなり動作しなかった

syuilo avatar Jun 06 '23 02:06 syuilo

VueのライブラリもあったけどVue3に対応してなかった

syuilo avatar Jun 06 '23 02:06 syuilo

https://github.com/BoxFactura/pulltorefresh.js/ はVueもしくはMisskey Webと相性が悪いのかレンダリングがおかしくなり動作しなかった

というか要素指定に文字列(=セレクタ)しか渡せない点が嫌

syuilo avatar Jun 06 '23 02:06 syuilo

誰か実装する人おる? いなければしゅいろさんがトライするけど

syuilo avatar Jun 06 '23 07:06 syuilo

しゅいろさん任せた:pray:

EbiseLutica avatar Jun 06 '23 07:06 EbiseLutica

と思ったけど意外と複雑そう🥴

syuilo avatar Jun 06 '23 07:06 syuilo

もしかしたら参考になるかも https://vant-contrib.gitee.io/vant/#/en-US/pull-refresh https://github.com/youzan/vant/tree/main/packages/vant/src/pull-refresh

u1-liquid avatar Jun 06 '23 07:06 u1-liquid