Droid-ify / client

F-Droid client with Material UI.
GNU General Public License v3.0
3.47k stars 77 forks source link

Speed up auto-scroll to top #195

Closed vertigo220 closed 2 weeks ago

vertigo220 commented 1 year ago

With the new green up arrow button that scrolls back to the beginning of the app list, it should jump back up rather than scrolling, or at least scroll faster. I scrolled down manually for five seconds and it took a full three seconds for it to scroll back up when I tapped the button. Not really a big deal, but there's no reason to have it take even this long.

GameOverFlowChart commented 1 year ago

I think it makes sense to make the speed relative to the distance so that scrolling up always takes the same amount of time. Or make it an acceleration relative to the distance, so that it starts smooth but in total always takes the same time to reach the top.

vertigo220 commented 1 year ago

But the only way to make it always take the same amount of time is to make it instant. Otherwise, how could it take the same amount of time whether you've scrolled one screen or 30? Either that, or auto-scrolling back up after scrolling down just a page or two would have to be very slow.

GameOverFlowChart commented 1 year ago

But the only way to make it always take the same amount of time is to make it instant.

Wrong.

Otherwise, how could it take the same amount of time whether you've scrolled one screen or 30?

We call that magic "Math".

mecuricat commented 1 year ago

There is an instant messenger called monocles chat which has an instant scroll to bottom feature. Perhaps their (GPL-3.0 licensed) code can be used to replace their bottom scroll to top scroll for Droid-ify.