GetStream / stream-chat-angular

💬 Angular Chat SDK ➜ Stream Chat. Build a chat app with ease.
https://getstream.io/chat/sdk/angular/
52 stars 33 forks source link

Start loading next/prev message page earlier #566

Open szuperaz opened 7 months ago

szuperaz commented 7 months ago

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 commented 6 months ago

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)