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

fix: user scrolling only recognized upwards #81

Merged
merged 6 commits into from
Sep 30, 2024
Merged

Conversation

aeschi
Copy link
Collaborator

@aeschi aeschi commented Sep 30, 2024

When programatically scrolling the auto scroll to the bottom was sometimes interrupted, since there is no difference between user scrolling and setting the scroll position in the code.

We now check for the scroll direction since the auto scrolling only needs to be interrupted when the user is scrolling upwards and we only scroll downwards programatically.


Copy link

vercel bot commented Sep 30, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ber-gpt-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 30, 2024 9:07am

Copy link
Contributor

@raphael-arce raphael-arce left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a few small naming suggestions, let me know what you think :) otherwise lgtm 👍

src/components/chat/chat-messages.tsx Outdated Show resolved Hide resolved
src/components/chat/chat-messages.tsx Outdated Show resolved Hide resolved
src/components/chat/chat-messages.tsx Outdated Show resolved Hide resolved
@aeschi aeschi merged commit bc704cd into staging Sep 30, 2024
3 checks passed
@aeschi aeschi deleted the fix/scrolling-behavior branch September 30, 2024 09:16
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.

2 participants