This repository was archived by the owner on Sep 15, 2024. It is now read-only.
forked from ChatGPTNextWeb/NextChat
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve [UI/UX] [Front End] [Chat] Scrolling (#281)
* Improve [UI/UX] [Front End] [Chat] Scrolling - [+] feat(chat.tsx): improve chat scroll functionality - Add onScroll function to track user scroll state - Modify scrollDomToBottom to prevent auto-scroll when user scrolls up - Add scrollToBottomSmooth function for smooth scrolling - Update logic in _Chat to better handle auto-scroll - Replace scrollToBottom with scrollToBottomSmooth in chat component * Fix Stupid React Warning - [+] fix(chat.tsx): include props in useEffect dependencies in ChatActions function
- Loading branch information
1 parent
bc0a9b9
commit 3fa698a
Showing
1 changed file
with
58 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters