fix(app): middle-click tab close in scrollable tab bar (#15081)

Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
pull/15180/head^2
Stefan 2026-02-26 08:59:08 +02:00 committed by GitHub
parent 392a6d993f
commit aae75b3cfb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 0 deletions

View File

@ -65,6 +65,11 @@ function TabsTrigger(props: ParentProps<TabsTriggerProps>) {
...(split.classList ?? {}),
[split.class ?? ""]: !!split.class,
}}
onMouseDown={(e) => {
if (e.button === 1 && split.onMiddleClick) {
e.preventDefault()
}
}}
onAuxClick={(e) => {
if (e.button === 1 && split.onMiddleClick) {
e.preventDefault()