Slide icon indicating copy to clipboard operation
Slide copied to clipboard

Use gradual acceleration when scrolling to top, or just do it instantly if too far down

Open The0x539 opened this issue 10 years ago • 4 comments

Android version: 6.0.1 Slide version: 5.2.1

The0x539 avatar Apr 17 '16 16:04 The0x539

This was something I tried to implement, (pressing the tab scrolls back to the top if you're far down), but its more complicated than I was let on to think. We need to keep a count of items we've scrolled by. If that number reaches a threshold, then the scroll to top behavior needs to be changed. A faster way to do this is to use the overflow menu and refresh

Nxt3 avatar Apr 17 '16 17:04 Nxt3

You should be able to solve it 'quite easily' by sliding out the posts you view currently and slide the top posts back in. Instead of sliding past all posts.

I'm not sure but I think Reddit is Fun does it like this.

TheWorstNL avatar Apr 20 '16 09:04 TheWorstNL

I don't think it's that easy. There is already a method for determining how many posts we've scrolled past--but it's in a different part of the app. I don't understand the code enough to adapt it for the main view.

Nxt3 avatar Apr 20 '16 14:04 Nxt3

Done. Now if you're too far down, it just goes straight to the top (more than 8 posts)

ccrama avatar Apr 28 '16 20:04 ccrama