Browse Source

Merge pull request #742 from Yidadaa/revert-715-bugfix-scrollthumb

Revert "fix: autoscroll conflict"
Yifei Zhang 1 năm trước cách đây
mục cha
commit
2fb67f52a1
1 tập tin đã thay đổi với 0 bổ sung1 xóa
  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);
   };