diff --git a/app/components/chat.tsx b/app/components/chat.tsx index 5dce8fd61..ac21599e0 100644 --- a/app/components/chat.tsx +++ b/app/components/chat.tsx @@ -434,7 +434,7 @@ export function Chat(props: { const [hitBottom, setHitBottom] = useState(false); const onChatBodyScroll = (e: HTMLElement) => { - const isTouchBottom = e.scrollTop + e.clientHeight >= e.scrollHeight - 20; + const isTouchBottom = e.scrollTop + e.clientHeight >= e.scrollHeight; setHitBottom(isTouchBottom); };