fix: auto-scroll stops following streaming after max height reached - #12
Merged
Conversation
… negatives The useLayoutEffect height-measurement cycle temporarily sets height:auto on the spring-animated parent, which can clamp scrollTop to 0 and fire a deferred scroll event that falsely disables auto-scroll at max container height. Switch to wheel events (exclusively user-initiated) to detect scroll-up intent, and re-enable auto-scroll when messages.length increases. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This was referenced Apr 5, 2026
quiet-node
added a commit
that referenced
this pull request
Apr 10, 2026
) fix: use wheel events for auto-scroll to prevent layout-induced false negatives The useLayoutEffect height-measurement cycle temporarily sets height:auto on the spring-animated parent, which can clamp scrollTop to 0 and fire a deferred scroll event that falsely disables auto-scroll at max container height. Switch to wheel events (exclusively user-initiated) to detect scroll-up intent, and re-enable auto-scroll when messages.length increases. Signed-off-by: Logan Nguyen <lg.131.dev@gmail.com>
quiet-node
added a commit
that referenced
this pull request
Apr 10, 2026
) fix: use wheel events for auto-scroll to prevent layout-induced false negatives The useLayoutEffect height-measurement cycle temporarily sets height:auto on the spring-animated parent, which can clamp scrollTop to 0 and fire a deferred scroll event that falsely disables auto-scroll at max container height. Switch to wheel events (exclusively user-initiated) to detect scroll-up intent, and re-enable auto-scroll when messages.length increases. Signed-off-by: Logan Nguyen <lg.131.dev@gmail.com>
quiet-node
added a commit
that referenced
this pull request
Apr 11, 2026
) fix: use wheel events for auto-scroll to prevent layout-induced false negatives The useLayoutEffect height-measurement cycle temporarily sets height:auto on the spring-animated parent, which can clamp scrollTop to 0 and fire a deferred scroll event that falsely disables auto-scroll at max container height. Switch to wheel events (exclusively user-initiated) to detect scroll-up intent, and re-enable auto-scroll when messages.length increases. Signed-off-by: Logan Nguyen <lg.131.dev@gmail.com>
This was referenced Apr 11, 2026
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.
Summary
useLayoutEffectheight-measurement cycle temporarily setsheight: autoon the spring-animated parent, which can clampscrollTopto 0 and fire a deferred scroll event that falsely disables auto-scroll once the container reaches max height (600px)Test plan
🤖 Generated with Claude Code