jhass / insporation

Flutter based client for diaspora*
BSD 3-Clause "New" or "Revised" License
30 stars 3 forks source link

Scroll to top upon reselecting the current bottom navigation item #30

Closed jhass closed 3 years ago

jhass commented 3 years ago

closes #12

tclaus commented 3 years ago

It works as expected.. But now it becomes obvious that if someone scrolls down a long way ... the 'scrollUp' mechanics scrolls alls the way up again.. and it scatters a lot.

As a (very luxury) enhancement it could be 'jump' the most up, and just scrolls the last bit if current view is every far away from the top most. I suggest to keep it now, but maybe if someone likes to beautify this - I will not hold it back.

jhass commented 3 years ago

Should be quite easy to improve by checking the pixel offset and invoking different things on the scroll controller in sequence.