alibaba / ChatUI

The UI design language and React library for Conversational UI
https://chatui.io
MIT License
2.61k stars 277 forks source link

Prevent scroll to bottom when not on bottom #96

Closed ScreamZ closed 1 year ago

ScreamZ commented 1 year ago

Hello, thanks for this awesome library that gives much inspiration! (even if not documented in English ahah)

I would like to prevent the default behavior where the screen scroll down on a new message with something like this: https://github.com/compulim/react-scroll-to-bottom

scroll to bottom only if we already are on the bottom. This allows the user to to being auto-jumped if he is searching in some sort of history and a new message come.

Is it already possible ?

Thanks

akai commented 1 year ago

It's supported back to the bottom