fix(web): Fix auto-scroll issue in chat#2797
Merged
Merged
Conversation
Contributor
Author
|
@chenliang15405 @fangyinc |
Collaborator
|
hi @WangzJi , It seems that a little problem with viewing the historical messages. it can't scroll. would you fix it? |
Contributor
Author
|
Thanks for pointing it out! I’ll look into it and get it fixed. |
… scroll - Fix timing issues in state reset for new messages - Reset scroll tracking states immediately instead of delayed reset - Ensure streaming content scrolling works consistently after new messages - Set proper height baseline for accurate content change detection - Prevent race conditions between user scroll detection and auto-scroll
Contributor
Author
|
@chenliang15405 |
- Implement MutationObserver for real-time DOM change detection - Add triple-layer scroll guarantee: height detection + force check + backup timer - Optimize architecture: separate scroll logic between container and content components - Add intelligent user experience: respect manual scrolling with 100px threshold - Fix second message scroll failure and streaming mode timeout issues - Support both new chat mode and dashboard mode scenarios
Contributor
Author
Contributor
Author
|
@chenliang15405 @fangyinc |
Collaborator
- Fix memory leak in ChatContentContainer by properly managing requestAnimationFrame - Fix scroll control issue in chat_dashboard mode where user scroll was ignored during streaming - Optimize performance by reducing unnecessary useEffect triggers - Remove global scrollBehavior CSS to avoid conflicts - Update Chinese comments to English - Improve scroll consistency across different chat modes
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Description
Fixes #2796
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Snapshots:
Include snapshots for easier review.


Checklist: