Tab closes on middle button mousedown rather than full click #13458

Closed
opened 2026-01-31 03:43:15 +00:00 by claunia · 5 comments
Owner

Originally created by @lbmaian on GitHub (Apr 15, 2021).

Windows Terminal version (or Windows build number)

1.7.1033.0

Other Software

No response

Steps to reproduce

  1. Open a new tab
  2. Middle button mousedown on the tab itself

Expected Behavior

Tab does not close until middle button mouseup on the same tab occurs, i.e. a full middle button click action.

This is the most typical behavior for tab closing in tabbed applications (web browsers, IDEs, etc.).

Actual Behavior

Tab closes immediately on middle button mousedown, without waiting for middle button mouseup on the same tab.

Originally created by @lbmaian on GitHub (Apr 15, 2021). ### Windows Terminal version (or Windows build number) 1.7.1033.0 ### Other Software _No response_ ### Steps to reproduce 1. Open a new tab 2. Middle button mousedown on the tab itself ### Expected Behavior Tab does not close until middle button mouseup on the same tab occurs, i.e. a full middle button click action. This is the most typical behavior for tab closing in tabbed applications (web browsers, IDEs, etc.). ### Actual Behavior Tab closes immediately on middle button mousedown, without waiting for middle button mouseup on the same tab.
Author
Owner

@skyline75489 commented on GitHub (Apr 15, 2021):

Huh it is true. I can easily repro this. Perhaps we should move this to upstream repo.

@skyline75489 commented on GitHub (Apr 15, 2021): Huh it is true. I can easily repro this. Perhaps we should move this to upstream repo.
Author
Owner

@zadjii-msft commented on GitHub (Apr 15, 2021):

This might not be on WinUI. Looks like we're the one's that did it on PointerPressed, not PointerReleased. See TerminalPage::_OnTabClick

@zadjii-msft commented on GitHub (Apr 15, 2021): This might not be on WinUI. Looks like we're the one's that did it on PointerPressed, not PointerReleased. See `TerminalPage::_OnTabClick`
Author
Owner

@lbmaian commented on GitHub (Apr 15, 2021):

Also something to point out:

Most tabbed interfaces (including Chrome, Edge, Firefox, Visual Studio Code) require that mousedown happen on the button, then subsequent mouseup on the same button, allowing pointer to move outside the button while button is still held down as long as it returns to the button when the mouseup happens.

Others (including Notepad++) only require mouseup on the button, without requiring mousedown on that button, i.e. pointer can be off the button when mousedown happens, move pointer over button, then mouseup.

Aside: I found Visual Studio (not VS Code) tabs also close on middle mousedown.

@lbmaian commented on GitHub (Apr 15, 2021): Also something to point out: Most tabbed interfaces (including Chrome, Edge, Firefox, Visual Studio Code) require that mousedown happen on the button, then subsequent mouseup on the same button, allowing pointer to move outside the button while button is still held down as long as it returns to the button when the mouseup happens. Others (including Notepad++) only require mouseup on the button, without requiring mousedown on that button, i.e. pointer can be off the button when mousedown happens, move pointer over button, then mouseup. Aside: I found Visual Studio (not VS Code) tabs also close on middle mousedown.
Author
Owner

@ghost commented on GitHub (May 25, 2021):

:tada:This issue was addressed in #9842, which has now been successfully released as Windows Terminal v1.8.1444.0.🎉

Handy links:

@ghost commented on GitHub (May 25, 2021): :tada:This issue was addressed in #9842, which has now been successfully released as `Windows Terminal v1.8.1444.0`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v1.8.1444.0) * [Store Download](https://www.microsoft.com/store/apps/9n8g5rfz9xk3?cid=storebadge&ocid=badge)
Author
Owner

@ghost commented on GitHub (May 25, 2021):

:tada:This issue was addressed in #9842, which has now been successfully released as Windows Terminal Preview v1.9.1445.0.🎉

Handy links:

@ghost commented on GitHub (May 25, 2021): :tada:This issue was addressed in #9842, which has now been successfully released as `Windows Terminal Preview v1.9.1445.0`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v1.9.1445.0) * [Store Download](https://www.microsoft.com/store/apps/9n8g5rfz9xk3?cid=storebadge&ocid=badge)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#13458