Open swarnava112 opened 6 months ago
Interesting.
Yes, it seems the button will always scroll to end (scrollToEnd({ behavior: 'smooth' })
). I remember we have something called "unread activity" and we should be able to customize the behavior to scroll to that activity.
Is your feature request related to a problem?
yes. When clicking on the 'New message' button, the windows always scrolls to the bottom of the latest chat. It would be of great help if this behaviour is customizable
Describe the suggestion or request in detail
https://github.com/microsoft/BotFramework-WebChat/blob/512cc60a95bd54f8e7eb54574b6869ff3deca351/packages/component/src/Utils/scrollIntoViewWithBlockNearest.ts#L8
This behaviour should be customizable, as in the dev can control the scroll position to either top or bottom of the intented target.
Describe alternatives you have considered
No response
Additional context
No response