Browse Source

Merge pull request #715 from betgo/bugfix-scrollthumb

fix: autoscroll conflict
Yifei Zhang 1 year ago
parent
commit
a15bd3ce33
1 changed files with 1 additions and 0 deletions
  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);
   };