Repository navigation
Scroll the IDE with the mouse wheel / trackpad (v1.67.0) - #146
Merged
Merged
Conversation
The IDE now asks the terminal for mouse reports (modes 1000 + 1006) and
routes each wheel step to the pane under the pointer: the editor and the
file tree take it as Up/Down, the terminal and AI panels scroll their
output. The decoder understands SGR and legacy X10 reports and ignores
clicks, so their bytes are never typed into a document.
TerminalDriver.enter gains {bool mouseWheel = false}; the dashboard keeps
mouse reporting off. The dock panels now clamp their stored scroll on
render, so overscrolling past the top no longer swallows scroll-downs.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
- Drop non-wheel mouse reports in the decoder instead of emitting KeyType.unknown, so a click no longer clears the status message or disarms a pending Ctrl-Q/Ctrl-W. - Decode the legacy `ESC [ M b x y` report only when mouse mode is on (KeyDecoder(mouseReports: true)); otherwise `ESC [ M` stays one key. - Always restore the terminal on IDE exit, even if teardown throws. - enter() without mouseWheel turns off a mouse mode left on by an earlier enter(mouseWheel: true). - Wheel over the tab bar no longer moves the editor caret. - Extract the shared dock-panel scroll offset into ScrollbackOffset. - Document Shift+middle-click paste; drop a duplicated comment. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
?1000h+?1006hSGR) and decodes wheel steps intoKeyType.wheelUp/wheelDowncarrying the pointer cell.unknownso payload bytes never become typed text.TerminalDriver.enter({bool mouseWheel = false})— opt-in; the dashboard keeps it off so native selection works there. In the IDE, Shift-drag (Option/Fn on macOS) selects text.Test plan
dart analyzeclean🤖 Generated with Claude Code