Forráskód Böngészése

chore: fix mobile scroll

Yifei Zhang 2 éve
szülő
commit
8d34b0f454
1 módosított fájl, 1 hozzáadás és 0 törlés
  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);
     }
   });