Closed MarcMcIntosh closed 4 days ago
auto scrolling when streaming has been causing some issues, making it opt in could provided a better user experience.
This PR replaced the ref to the div to follow when auto scrolling with a ref to the scroll area.
ref.current.scrollIntoView was replaced with mutating ref.current.scrollHeight, it seems to be smoother :)
ref.current.scrollIntoView
ref.current.scrollHeight
Along with other refactoring.
https://refact.fibery.io/Software_Development/UI-chat-js-133#Task/Auto-scroll-is-still-broken-384
Make auto scroll opt in
Description
auto scrolling when streaming has been causing some issues, making it opt in could provided a better user experience.
This PR replaced the ref to the div to follow when auto scrolling with a ref to the scroll area.
ref.current.scrollIntoView
was replaced with mutatingref.current.scrollHeight
, it seems to be smoother :)Along with other refactoring.
Type of change
How to Test
Screenshots (if applicable)
Checklist
Linked Issues
https://refact.fibery.io/Software_Development/UI-chat-js-133#Task/Auto-scroll-is-still-broken-384
Additional Notes