forked from XiaoMo/ChatGPT-Next-Web
chore: fix mobile scroll
This commit is contained in:
parent
b44caeeefb
commit
8d34b0f454
@ -286,6 +286,7 @@ function useScrollToBottom() {
|
|||||||
const dom = scrollRef.current;
|
const dom = scrollRef.current;
|
||||||
if (dom && autoScroll) {
|
if (dom && autoScroll) {
|
||||||
setTimeout(() => (dom.scrollTop = dom.scrollHeight), 1);
|
setTimeout(() => (dom.scrollTop = dom.scrollHeight), 1);
|
||||||
|
setAutoScroll(false);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user