浏览代码

Merge pull request #715 from betgo/bugfix-scrollthumb

fix: autoscroll conflict
Yifei Zhang 2 年之前
父节点
当前提交
a15bd3ce33
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      app/components/chat.tsx

+ 1 - 0
app/components/chat.tsx

@@ -354,6 +354,7 @@ 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);
   };