-
Notifications
You must be signed in to change notification settings - Fork 272
[head prefetch] Prefetching does not seem to keep the correct position #185
Comments
@frenetisch-applaudierend , not sure if I'm getting your issue right... |
Hi @dodikk thanks for your reply. The problem I believe is that this message does nothing to adjust the scroll position when new content is added. I assume what happens is that the content is added to the top which moves everything down, but there is no adjustment of the contentOffset to account for this. So what I see now when I have e.g. batches of 20 cells is that cell 20 is displayed and above the spinner to load new messages. When those are loaded the top visible cell is now 40. What I would like to achieve instead is that after the new cells are loaded that the top visible cell is still 20 or at least close to it. Does that make more sense? |
Then the best way to go is
P.S. Unfortunately, this involves forking |
Have you tried changing your |
I will try then first with a higher timeout to allow for the layout pass to be finished (this was why I added the "superfluous"
I noticed this :-( Thanks for keeping at it though! 👍 |
@munsifhayat , sorry but I'm short of time at the moment. |
@frenetisch-applaudierend any solution so far ? |
@munsifhayat Unfortunately no. I kind of gave up on this, frankly. |
My issue is of same kind. Batch fetch content isn’t calling. When does UI is so ambiguous. Huge waste of time :( |
When I batch prefetch messages, the message view scrolls to the top instead of keeping the scroll position where the last message was. Is there a way to keep the scroll position at the last position?
I tried manually scrolling back, but it feels brittle and results in weird scrolling behaviour as well.
Any hint what I can change is appreciated.
Here's what my very basic controller looks like:
The text was updated successfully, but these errors were encountered: