stream-chat-angular icon indicating copy to clipboard operation
stream-chat-angular copied to clipboard

Start loading next/prev message page earlier

Open szuperaz opened this issue 1 year ago • 1 comments

Currently, the SDK loads the next/prev (depends on scroll direction) message page when the user scrolls to the very top/bottom of the channel (red line on the screenshot), but we can load it earlier, and then users won't have to wait (or wait less) for the messages to arrive (example line green on the screenshot).

Screenshot 2024-03-21 at 14 48 47

szuperaz avatar Mar 21 '24 13:03 szuperaz

Implementation is in progress, issue: on Safari the message list will load two pages instead of just one. This is related to a problem with scrollTop (that most likely not present in Google Chrome because that tries to preserve scroll position while scrolling anyway)

szuperaz avatar Apr 03 '24 13:04 szuperaz