浏览代码

Revert "fix: autoscroll conflict"

Yifei Zhang 1 年之前
父节点
当前提交
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);
   };