chatscope / chatscope/chat-ui-kit-react

Smooth Scrolling doesn't work

Open
#160 4 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
1.8k
Forks
154
PR merge metrics
No merged PRs in 30d

Description

I have created several custom components in my chat app:

_ScrollToBottom Button,
Reply to Messages,
Searching and navigating between Messages_ etc.

And often I need scrollIntoView or other functions. In the scrollintoView funtion, whenever I use {behavior='Smooth'}. It just moves a fraction and nothing else. Using only "behavior: auto" works, but it is usually insufficient for UX.

I could identify that this issue is the same one as in the docs:
https://chatscope.io/storybook/react/?path=/story/components-messagelist--scroll-to-bottom

Here the scroll to bottom smooth doesn't work and only moves the screen by a bit.

Is there anyway I can use smooth Scrolling behavior in the components like messageList, chat container???

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the Storybook Components/Messagelist/Scroll to bottom example linked in the issue, comparing behavior: smooth scrolling stops after moving only a fraction while auto scrolling completes. Trace the scrollIntoView usage in the MessageList and chat container components, then verify that smooth scrolling reaches the bottom in the documented example and related component use cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.