Update home.tsx

滑动由smooth 修改为 auto
This commit is contained in:
wangfang 2023-03-29 15:58:15 +08:00 committed by GitHub
parent c7d08a9911
commit b7df7d1ade
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -301,7 +301,7 @@ export function Chat(props: { showSideBar?: () => void }) {
const dom = latestMessageRef.current; const dom = latestMessageRef.current;
if (dom && !isIOS() && autoScroll) { if (dom && !isIOS() && autoScroll) {
dom.scrollIntoView({ dom.scrollIntoView({
behavior: "smooth", behavior: "auto",
block: "end", block: "end",
}); });
} }