Merge pull request #2542 from Yidadaa/yifei-bugfix-0802

chore: smaller auto scroll interval
This commit is contained in:
Yifei Zhang 2023-08-02 23:54:19 +08:00 committed by GitHub
commit e381add944
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -387,7 +387,7 @@ function useScrollToBottom() {
if (autoScroll.current) {
scrollToBottom();
}
}, 100);
}, 30);
return () => clearInterval(intervalId);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);