Explorar el Código

Revert "fix: autoscroll conflict"

Yifei Zhang hace 1 año
padre
commit
c1bb53c4e3
Se han modificado 1 ficheros con 0 adiciones y 1 borrados
  1. 0 1
      app/components/chat.tsx

+ 0 - 1
app/components/chat.tsx

@@ -354,7 +354,6 @@ export function Chat(props: {
   const [hitBottom, setHitBottom] = useState(false);
   const [hitBottom, setHitBottom] = useState(false);
 
 
   const onChatBodyScroll = (e: HTMLElement) => {
   const onChatBodyScroll = (e: HTMLElement) => {
-    setAutoScroll(false);
     const isTouchBottom = e.scrollTop + e.clientHeight >= e.scrollHeight - 20;
     const isTouchBottom = e.scrollTop + e.clientHeight >= e.scrollHeight - 20;
     setHitBottom(isTouchBottom);
     setHitBottom(isTouchBottom);
   };
   };