Browse Source

chore: fix mobile scroll

Yifei Zhang 2 years ago
parent
commit
8d34b0f454
1 changed files with 1 additions and 0 deletions
  1. 1 0
      app/components/chat.tsx

+ 1 - 0
app/components/chat.tsx

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