fix(web): Keep canvas zoom out of the detail panel scroll - #68
Merged
Conversation
The window-level wheel handler zoomed the canvas on every scroll, including over the detail panel, so scrolling the chat zoomed the scene instead. Skip zoom for events inside #detail and let the panel and chat scroll natively. Also enlarge the chat (400px panel, 52vh transcript) and give the panel scrollbars a thin dark style matching the page theme.
|
4ndreello
marked this pull request as ready for review
September 8, 2026 18:19
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.



Scrolling over the open session detail zoomed the canvas instead of scrolling the chat: the window-level wheel handler called preventDefault() on every wheel event, including those bubbling up from #detail and #dChat. The handler now returns early for events inside #detail, so the panel and transcript scroll natively while the canvas keeps zooming everywhere else.
Also makes the chat roomier (400px panel, 52vh transcript with a 140px floor) and styles both scrollbars thin and dark to match the page theme instead of the OS default.
Validated in headless Chromium against a mock session with a long transcript: wheel over chat scrolls with zoom unchanged, wheel over the input leaves zoom alone, wheel over empty canvas still zooms. Scoped suite passes (tests/web-command.test.ts, 28 tests).