[bugfix/TMP] Fix the bug that message logs hasn't scrolled down even when it should be.(like when the logs update speed fast)
This commit is contained in:
@@ -14,7 +14,8 @@ export const LogBox = () => {
|
|||||||
useLayoutEffect(() => {
|
useLayoutEffect(() => {
|
||||||
store.log_box_ref = log_container_ref;
|
store.log_box_ref = log_container_ref;
|
||||||
if (!is_scrolling) {
|
if (!is_scrolling) {
|
||||||
scrollToBottom(store.log_box_ref, true);
|
scrollToBottom(store.log_box_ref);
|
||||||
|
// scrollToBottom(store.log_box_ref, true); [Fix me]
|
||||||
}
|
}
|
||||||
}, [currentMessageLogs.data]);
|
}, [currentMessageLogs.data]);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user