Skip to content
This repository has been archived by the owner on Sep 15, 2024. It is now read-only.

Commit

Permalink
check scroll on hit bottom
Browse files Browse the repository at this point in the history
  • Loading branch information
movalex authored and H0llyW00dzZ committed Feb 10, 2024
1 parent f9ac681 commit 9dba614
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/components/chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1190,7 +1190,8 @@ function _Chat() {
}

setHitBottom(isHitBottom);
setAutoScroll(isHitBottom);
let isAutoScrollEnabled: boolean = config.autoScrollMessage;
setAutoScroll(isAutoScrollEnabled);
}, [setHitBottom, setAutoScroll, isMobileScreen, msgRenderIndex, setMsgRenderIndex]); // Added setMsgRenderIndex

// Use the custom hook to debounce the onChatBodyScroll function
Expand Down

0 comments on commit 9dba614

Please sign in to comment.