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

MessageList gradually scrolling out of view when new message is received #124

Open
jordanshardy opened this issue Aug 3, 2023 · 1 comment
Labels
bug Something isn't working Can't reproduce

Comments

@jordanshardy
Copy link

Hey, thanks for your work, awesome package.

Having a small issue where a new message is received, the last message on MessageList is gradually scrolling out of focus.

Here is the example video: https://www.loom.com/share/9d42356201e945559963cfe717e16506

Here is the code, pretty straight forward so I don't think it's something with the props:

   <MessageList
            ref={msgListRef}
            scrollBehavior="auto"
            onYReachStart={
              hasMoreMessages &&
              !isLoadingMessages &&
              typeof onLoadMore === 'function'
                ? onLoadMore
                : undefined
            }
            {...messageListProps}>
            <MessageList.Content>
            </MessageList.Content>
   </MessageList>

Curious if anyone else is having this issue and what I can do to solve it.

Thanks!

@supersnager supersnager added bug Something isn't working Can't reproduce labels Feb 23, 2024
@supersnager
Copy link
Contributor

@yordanshardy I'm not sure but it may be due to custom message styling. Unfortunately managing sticky scroll is quite complicated, so it is impossible to debug with just a video and a simple example.
If the problem still occurs please provide a repro.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Can't reproduce
Projects
None yet
Development

No branches or pull requests

2 participants