Explorar o código

Revert "fix: autoscroll conflict"

Yifei Zhang %!s(int64=2) %!d(string=hai) anos
pai
achega
c1bb53c4e3
Modificáronse 1 ficheiros con 0 adicións e 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 onChatBodyScroll = (e: HTMLElement) => {
-    setAutoScroll(false);
     const isTouchBottom = e.scrollTop + e.clientHeight >= e.scrollHeight - 20;
     setHitBottom(isTouchBottom);
   };