diff --git a/apps/web/src/components/editor/action-bar.tsx b/apps/web/src/components/editor/action-bar.tsx index ea4fad84a..ba08b5654 100644 --- a/apps/web/src/components/editor/action-bar.tsx +++ b/apps/web/src/components/editor/action-bar.tsx @@ -498,15 +498,11 @@ function Tab(props: TabProps) { e.stopPropagation(); if (isTemporary) onKeepOpen(); }} - onMouseDown={(e) => { - if (e.button == 1) { - e.preventDefault(); - onClose(); - } + onAuxClick={(e) => { + if (e.button == 1) onClose(); }} - onClick={(e) => { - e.stopPropagation(); - onFocus(); + onMouseUp={(e) => { + if (e.button == 0) onFocus(); }} {...listeners} {...attributes}