Skip to content

Commit a0f2d63

Browse files
Merge pull request #123 from microsoft/Bug11709
`fix`: While switching from Browse to Generate section, on Generate section vertical scroll starts to move from top to bottom by default.
2 parents ae7d2b2 + f062914 commit a0f2d63

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

frontend/src/pages/chat/Chat.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -825,11 +825,11 @@ const Chat = ({ type = ChatType.Browse }: Props) => {
825825
}, [AUTH_ENABLED])
826826

827827
useLayoutEffect(() => {
828-
chatMessageStreamEnd.current?.scrollIntoView({ behavior: 'smooth' })
828+
chatMessageStreamEnd.current?.scrollIntoView({ behavior: 'auto' })
829829
}, [showLoadingMessage, processMessages])
830830

831831
useEffect(() => {
832-
chatMessageStreamEnd.current?.scrollIntoView({ behavior: 'smooth' })
832+
chatMessageStreamEnd.current?.scrollIntoView({ behavior: 'auto' })
833833
}, [messages])
834834

835835
const onShowCitation = (citation: Citation) => {

0 commit comments

Comments
 (0)