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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user