Skip to content

Commit

Permalink
Merge pull request ChatGPTNextWeb#2106 from Yidadaa/bugfix-0623
Browse files Browse the repository at this point in the history
feat: close ChatGPTNextWeb#2025 just use a smaller to-bottom threshold
  • Loading branch information
Yidadaa authored Jun 23, 2023
2 parents 3f5655e + 8e1f6f0 commit b941be8
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 b941be8

Please sign in to comment.