From 55b9bfd69c16631494b338be026af366c7b5e2b2 Mon Sep 17 00:00:00 2001 From: Sakamoto Shiina <68018796+ShiinaSakamoto@users.noreply.github.com> Date: Sun, 22 Dec 2024 17:57:12 +0900 Subject: [PATCH] [bugfix/TMP] Fix the bug that message logs hasn't scrolled down even when it should be.(like when the logs update speed fast) --- .../main_section/message_container/log_box/LogBox.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src-ui/app/main_page/main_section/message_container/log_box/LogBox.jsx b/src-ui/app/main_page/main_section/message_container/log_box/LogBox.jsx index 1977171e..4f9ef5a0 100644 --- a/src-ui/app/main_page/main_section/message_container/log_box/LogBox.jsx +++ b/src-ui/app/main_page/main_section/message_container/log_box/LogBox.jsx @@ -14,7 +14,8 @@ export const LogBox = () => { useLayoutEffect(() => { store.log_box_ref = log_container_ref; if (!is_scrolling) { - scrollToBottom(store.log_box_ref, true); + scrollToBottom(store.log_box_ref); + // scrollToBottom(store.log_box_ref, true); [Fix me] } }, [currentMessageLogs.data]);