Pause chat auto-scroll on upward wheel over nested content - #11065
Merged
Conversation
Remove the `isNested` helper that previously allowed upward scrolling inside nested scrollable regions (tool output, code blocks) without disabling auto-scroll. Now any upward wheel input anywhere in the transcript immediately pauses auto-scroll, reflecting the user's intent to review earlier content even when a nested region would consume the event. The wheel handler is registered with `capture: true` so it fires before nested elements can intercept the event, and `markUser` no longer triggers on wheel events since the capture handler handles that intent.
Contributor
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Files Reviewed (3 files)
Notes: The fix is well-reasoned and the implementation is correct:
Reviewed by claude-4.6-sonnet-20260217 · 207,875 tokens Review guidance: REVIEW.md from base branch |
marius-kilocode
approved these changes
Jun 10, 2026
t7tran
pushed a commit
to t7tran/kilocode
that referenced
this pull request
Aug 14, 2026
…ilo-Org#11065) Remove the `isNested` helper that previously allowed upward scrolling inside nested scrollable regions (tool output, code blocks) without disabling auto-scroll. Now any upward wheel input anywhere in the transcript immediately pauses auto-scroll, reflecting the user's intent to review earlier content even when a nested region would consume the event. The wheel handler is registered with `capture: true` so it fires before nested elements can intercept the event, and `markUser` no longer triggers on wheel events since the capture handler handles that intent.
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.
Part of #11030
Why
Scrolling within a nested container in the chat would create a quick moveup and down, disrupting the user scroll intention.
Implementation
We changed chat auto-scroll to prioritize explicit user intent (As opposed to position based).
Any upward wheel gesture within the conversation—including over nested tool outputs or code blocks—immediately pauses “follow bottom” via the existing
stop()state.We removed the previous
data-scrollableexception and geometry-based ownership checks, because nested containers may not currently overflow or may be at a boundary. Auto-scroll resumes only through the existing resume action.Screenshots / Video
Before
wiggle.mov
After
wiggle-fix.mov
Testing