Skip to content

Commit 27e093d

Browse files
committed
[frontend] don't allow tab hover tip to show up with contextmenu
1 parent f85469f commit 27e093d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

frontend/src/components/TabStrip.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,15 @@ export const DragTab: Component<
6565
style="z-index: 0;"
6666
class="tab"
6767
data-id={this.id}
68-
on:mousedown={(e) => {
68+
on:mousedown={(e: MouseEvent) => {
6969
this.mousedown(e);
7070
e.stopPropagation();
7171
e.preventDefault();
7272
}}
73+
on:contextmenu={() => {
74+
if (hoverTimeout) clearTimeout(hoverTimeout);
75+
this.tooltipActive = false;
76+
}}
7377
on:transitionend={() => {
7478
cx.root.style.transition = "";
7579
cx.root.style.zIndex = "0";

0 commit comments

Comments
 (0)