Skip to content

[Bug] Can't close tab via middle click if bar is scrollable #15077

@choephix

Description

@choephix

Description

Middle-clicking a tab, while the tab bar is scrollable doesn't close it.

This happens because there's no onMouseDown handler calling preventDefault() for middle-click (button === 1), so the default 2D scrolly thing takes over.

Plugins

No response

OpenCode version

<=1.2.13

Steps to reproduce

  1. Open enough files/etc to make the tab bar scrollable
  2. Middle-click a tab to close it
  3. Yuck!

Screenshot and/or share link

Image

Operating System

No response

Terminal

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingwebRelates to opencode on web / desktop

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions