瀏覽代碼

Merge pull request #2542 from Yidadaa/yifei-bugfix-0802

chore: smaller auto scroll interval
Yifei Zhang 1 年之前
父節點
當前提交
e381add944
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/components/chat.tsx

+ 1 - 1
app/components/chat.tsx

@@ -387,7 +387,7 @@ function useScrollToBottom() {
       if (autoScroll.current) {
         scrollToBottom();
       }
-    }, 100);
+    }, 30);
     return () => clearInterval(intervalId);
     // eslint-disable-next-line react-hooks/exhaustive-deps
   }, []);