Skip to content

Commit

Permalink
The mobile terminal ishitbottom does not perform -10
Browse files Browse the repository at this point in the history
  • Loading branch information
reece00 authored Aug 22, 2023
1 parent 90c201d commit 4d3fdbd
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 4d3fdbd

Please sign in to comment.