Skip to content

route mouse-wheel events to background dialogs#2787

Merged
dgageot merged 1 commit into
docker:mainfrom
dgageot:board/dc13d546c622d122
May 13, 2026
Merged

route mouse-wheel events to background dialogs#2787
dgageot merged 1 commit into
docker:mainfrom
dgageot:board/dc13d546c622d122

Conversation

@dgageot
Copy link
Copy Markdown
Member

@dgageot dgageot commented May 13, 2026

When a background dialog (e.g. a pending elicitation) is open, mouse-wheel events were falling through to the chat area so the user could scroll the conversation behind the dialog. They now go to the dialog itself, like every other open dialog. Tab navigation still works as before, so the wheel naturally only ever reaches the dialog of the current tab.

@dgageot dgageot requested a review from a team as a code owner May 13, 2026 13:19
Copy link
Copy Markdown

@docker-agent docker-agent left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assessment: 🟢 APPROVE

The change correctly routes mouse-wheel events to background dialogs by removing the special-case pass-through that previously allowed wheel events to fall through to the chat area. The logic is sound: the background-dialog exclusion branch is cleanly removed from handleWheelCoalesced, the dialog manager's existing forwardToTop() path handles the wheel message correctly, nil-safety is maintained via dialogMgr.Open() guards, and tab navigation/click pass-through paths are unaffected. No bugs were found in the added lines.

@dgageot dgageot merged commit f1ea31e into docker:main May 13, 2026
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants