Skip to content

Commit

Permalink
Merge pull request ChatGPTNextWeb#2685 from reece00/456
Browse files Browse the repository at this point in the history
  • Loading branch information
Yidadaa authored Aug 24, 2023
2 parents d8b6ebf + 4d3fdbd commit b3fd56c
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 @@ -935,7 +935,7 @@ function _Chat() {

const isTouchTopEdge = e.scrollTop <= edgeThreshold;
const isTouchBottomEdge = bottomHeight >= e.scrollHeight - edgeThreshold;
const isHitBottom = bottomHeight >= e.scrollHeight - 10;
const isHitBottom = bottomHeight >= e.scrollHeight - (isMobileScreen ? 0 : 10);

const prevPageMsgIndex = msgRenderIndex - CHAT_PAGE_SIZE;
const nextPageMsgIndex = msgRenderIndex + CHAT_PAGE_SIZE;
Expand Down

0 comments on commit b3fd56c

Please sign in to comment.