Skip to content

Hover does not disappear on mouse click (overlaps menus, etc.) #15825

@sgraband

Description

@sgraband

Feature Description:

Currently, the hovers remains visible even after a mouse click, such as when opening a menu. This is problematic because the preview can overlap menus or other UI elements, leading to a confusing or obstructive user experience. The hover should disappear once the user has interacted with the UI.

This issue is specific to the built-in hover service, which behaves differently from system hovers.

Steps to Reproduce:

  • Set the window.tabbar.enhancedPreview setting to either enhanced or visual (to use the built-in hover service).
  • Trigger a hover (e.g., by hovering over a tab).
  • Right-click on the hovered target (the tab itself).
    Note: Clicking elsewhere will already dismiss the hover due to position changes.
  • Observe that the hover preview does not disappear and may overlap the menu.

Expected Behavior:

The hover should be cancelled and hidden whenever any mouse click occurs (including clicking the hovered element or opening menus).

Image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions