Skip to content

Fix header controls starting window drags - #402

Merged
Tryanks merged 2 commits into
Tryanks:mainfrom
guivieiras:pr/header-control-mouse-down
Sep 11, 2026
Merged

Tryanks merged 2 commits into
Tryanks:mainfrom
guivieiras:pr/header-control-mouse-down

Conversation

@guivieiras

Copy link
Copy Markdown
Contributor

Clicking a header button could drag the window if the mouse moved slightly during the click. This could also stop the button from doing anything. Header buttons now keep those clicks from starting a window drag.

This covers the sidebar, Git, Open, terminal, plan, preview, and diff controls, along with the back and icon buttons in narrow windows. The design guide has been updated.

The new test presses the sidebar button in a wide window, moves the mouse by one pixel, and releases it. It checks that the sidebar closes.

Implemented with GPT-6 Astra in Tcode

@Tryanks
Tryanks merged commit 280db4e into Tryanks:main Sep 11, 2026
6 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.

2 participants