-
-
Notifications
You must be signed in to change notification settings - Fork 215
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
Wrong handle position with reversed scroll #625
Comments
Good day @mc-petry :)
Please wrap your content with an additional |
I see... Well, I have to think about how to fix this issue, because the browser currently doesn't expose any hints about what the min. and max. scroll position in one direction can be. It can be calculated in the range Sorry, but I can't provide a good workaround for the time being.. For Chrome I could fix this behavior but for other browsers I'm currently not sure how to do it. |
The more I've worked on a "fix" for this problem the more I realized that it is a whole new feature. I've just released |
Thanks a lot, works like a charm! |
Describe the bug
I have implemented a chat interface where messages flow from bottom to top, with the scroll bar anchored to the bottom. To achieve this, I used a native CSS solution, applying flex-direction in reverse to the container. However, I encountered an issue where the scrollbar handle incorrectly jumps to the bottom when scrolling to the top of the chat.
Seems everything works well except scroll handle at top position.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The scrollbar handle should remain at the top when the user scrolls to the top.
Examples
StackBlitz
Environment
The text was updated successfully, but these errors were encountered: