From df217b167e4d8cf71e0f1da22240537d2588501b Mon Sep 17 00:00:00 2001 From: CrescentLeaf Date: Sun, 9 Nov 2025 16:34:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E8=BD=BD=E6=B6=88=E6=81=AF=E5=92=8C?= =?UTF-8?q?=E5=88=9D=E6=AC=A1=E6=89=93=E5=BC=80=E5=8A=A0=E8=BD=BD=E6=B6=88?= =?UTF-8?q?=E6=81=AF=E7=9A=84=E9=A1=B5=E9=9D=A2=E7=BD=AE=E5=BA=95=E4=BC=98?= =?UTF-8?q?=E5=8C=96=3F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/ui/chat/ChatFragment.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/ui/chat/ChatFragment.tsx b/client/ui/chat/ChatFragment.tsx index 985217e..efabd23 100644 --- a/client/ui/chat/ChatFragment.tsx +++ b/client/ui/chat/ChatFragment.tsx @@ -124,7 +124,7 @@ export default function ChatFragment({ target, showReturnButton, onReturnButtonC top: 10000000000, behavior: "smooth", }) - }, 300) + }, 500) } useAsyncEffect(getChatInfoAndInit, [target]) @@ -148,7 +148,7 @@ export default function ChatFragment({ target, showReturnButton, onReturnButtonC const oldest = messagesList[0] setMessagesList(returnMsgs.concat(messagesList)) - setTimeout(() => chatPanelRef.current!.scrollTo({ top: $(`#chat_${target}_message_${oldest.id}`).get(0).offsetTop, behavior: 'smooth' }), 100) + setTimeout(() => chatPanelRef.current!.scrollTo({ top: $(`#chat_${target}_message_${oldest.id}`).get(0).offsetTop }), 200) } React.useEffect(() => {