fix: forward wheel events with coordinates when mouse tracking is active#136
Open
dgageot wants to merge 1 commit intocoder:mainfrom
Open
fix: forward wheel events with coordinates when mouse tracking is active#136dgageot wants to merge 1 commit intocoder:mainfrom
dgageot wants to merge 1 commit intocoder:mainfrom
Conversation
When a TUI application enables mouse tracking (modes 1000/1002/1003), wheel events were being intercepted by the Terminal-level capture handler and converted to arrow key sequences, losing the mouse position. This meant applications like tmux or vim with split panes could not determine which zone the cursor was over, causing the wrong pane to scroll. Now, when mouse tracking is active, Terminal forwards wheel events to InputHandler.handleWheelEvent() which sends proper SGR/X10 mouse sequences with cell coordinates (button 64/65 for scroll up/down). Assisted-By: docker-agent
dgageot
added a commit
to dgageot/board
that referenced
this pull request
Mar 10, 2026
Switch terminal emulator from @xterm/xterm to ghostty-web (WASM-based Ghostty port) loaded via ES module importmap from jsDelivr CDN. Include a workaround for coder/ghostty-web#136: forward wheel events with cell coordinates when mouse tracking is active, so scrolling in tmux panes and other multi-region TUIs works correctly. Assisted-By: docker-agent
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.
When a TUI application enables mouse tracking (modes 1000/1002/1003), wheel events were being intercepted by the Terminal-level capture handler and converted to arrow key sequences, losing the mouse position. This meant applications like tmux or vim with split panes could not determine which zone the cursor was over, causing the wrong pane to scroll.
Now, when mouse tracking is active, Terminal forwards wheel events to InputHandler.handleWheelEvent() which sends proper SGR/X10 mouse sequences with cell coordinates (button 64/65 for scroll up/down).
Assisted-By: docker-agent