소스 검색

Revert "fix: autoscroll conflict"

Yifei Zhang 2 년 전
부모
커밋
c1bb53c4e3
1개의 변경된 파일0개의 추가작업 그리고 1개의 파일을 삭제
  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);
   };