Open bertob opened 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.
Perhaps worth filing an issue against libadwaita?
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:
\n
Click a second time to go to the top of the view and refresh."
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