Просмотр исходного кода

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

chore: smaller auto scroll interval
Yifei Zhang 2 лет назад
Родитель
Сommit
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
   }, []);