Skip to content

bug: The “latest message” button doesn’t scroll to the correct position. #2863

@vihan85

Description

@vihan85

Describe the bug

A clear and concise description of what the bug is.

To Reproduce
I set the messages_limit to load 25 messages at a time.

Currently, my channel has 100 messages.
I replied to the very first message, then reloaded the page.

After reloading, when I click on the message I replied to, a button appears that allows me to jump back to the latest message.
However, when I click that button, it doesn’t always scroll correctly to the latest message — after repeating this action a few times, the scroll position becomes inaccurate.

Please show me how to fix this.
I want it to instantly scroll to the latest message when I click the button.

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots

https://drive.google.com/drive/folders/1qYArL6WbITStdY86bjmnvA_7K5k64MvB

Package version
"@stream-io/stream-chat-css": "^5.14.0",
"stream-chat-react": "^13.9.0",
"stream-chat": "^9.222.1"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions