Explorar o código

chore: smaller auto scroll interval

Yidadaa hai 1 ano
pai
achega
75d4eca722
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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
   }, []);