Yifei Zhang пре 2 година
родитељ
комит
8d34b0f454
1 измењених фајлова са 1 додато и 0 уклоњено
  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);
     }
   });