Browse Source

chore: fix mobile scroll

Yifei Zhang 2 năm trước cách đây
mục cha
commit
8d34b0f454
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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);
     }
   });