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

Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
This commit is contained in:
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

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()