Skip to content

Commit

Permalink
Merge pull request #2106 from Yidadaa/bugfix-0623
Browse files Browse the repository at this point in the history
feat: close #2025 just use a smaller to-bottom threshold
  • Loading branch information
Yidadaa authored Jun 23, 2023
2 parents d5c28b5 + 93c666b commit 0ccf5a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/components/chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ export function Chat() {
const navigate = useNavigate();

const onChatBodyScroll = (e: HTMLElement) => {
const isTouchBottom = e.scrollTop + e.clientHeight >= e.scrollHeight - 100;
const isTouchBottom = e.scrollTop + e.clientHeight >= e.scrollHeight - 10;
setHitBottom(isTouchBottom);
};

Expand Down

0 comments on commit 0ccf5a1

Please sign in to comment.