Skip to content

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

Closed

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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