Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow scrolling to fixed position while message streams #1494

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

cvidmar
Copy link

@cvidmar cvidmar commented Aug 19, 2024

  • Current: When message is streaming back to the client, the message window continuously scrolls to the bottom. This is a nice effect but it prevents the user from scrolling up to the beginning of the response and start reading immediately while the rest keeps streaming. Instead, the user has to wait until the message has finished streaming and then scroll up.
  • In this PR: The message scrolls to the bottom only if the position is already within 250 px from the bottom. This way, if let alone the message will keep display and scroll as usual. If instead the user scrolls up to get to the beginning, the scrolling stops and allows for comfortable reading while the rest of the message streams back and is appended to the bottom outside of the view.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant