chore: fix mobile scroll

This commit is contained in:
Yifei Zhang 2023-04-02 19:20:57 +00:00
parent b44caeeefb
commit 8d34b0f454

View File

@ -286,6 +286,7 @@ function useScrollToBottom() {
const dom = scrollRef.current;
if (dom && autoScroll) {
setTimeout(() => (dom.scrollTop = dom.scrollHeight), 1);
setAutoScroll(false);
}
});