GeopJr / Tuba

Browse the Fediverse
https://tuba.geopjr.dev/
GNU General Public License v3.0
572 stars 61 forks source link

[Request]: Scroll to top when clicking "Home" in view switcher #409

Open bertob opened 1 year ago

bertob commented 1 year ago

Describe the request

In most other Mastodon/social media apps clicking the view you're on in the switcher scrolls to top / updates the view and shows the most recent posts. I think it'd make sense to adopt the same behavior.

Implementation Details

GeopJr commented 1 year ago

There's no public way to do this (AFAIK) (AdwViewSwitcherButton is private & there's no signal emitted from ViewSwitcher, ViewStack etc). I'll give hacking around it a try.

bertob commented 1 year ago

Perhaps worth filing an issue against libadwaita?

nekohayo commented 1 year ago

I do miss this too compared to Mastodon's android client, I keep clicking those buttons (not just Home, but Notifications too) to go to the top and to refresh, and when nothing happens my reaction is always "...oh. Right." ; I always forget about the floating "go to top" button at the bottom (also it's extra work to travel the mouse back and forth between top and bottom).

If it can be made to work, I also think those switchers could benefit from having a GtkTooltip for desktop users to hint at their featureset? Something like: