Skip to content

Keep app menus that expand on hover open while the pointer drifts just off the bar #968

Done

Description

@cassiozen

What happens

With expandOnHover, app menus fold as soon as the pointer leaves the widget's frame. The bar is short, and the widget's frame is shorter still, so moving the pointer along the expanded titles easily drifts a few points off it. The menus collapse before the pointer reaches a title. Inline hover controls (bar.inlineHoverControls), including Sound's volume slider, fold the same way.

Steps to reproduce

  1. Add an appMenu widget with "expandOnHover": true.
  2. Hover the app name so the menus expand.
  3. Move the pointer right toward a later title, such as View, drifting slightly downward.

Expected

The menus stay expanded while the pointer is just off the widget, and fold shortly after it moves clearly away.

Environment

  • StableBar built from main at 34ffe15
  • macOS 27.0.1
  • Built-in themes, 40-point bar

Evidence

The widget's frame, measured offscreen, covers only part of the bar's height. In the built-in, minimal, notch, menu-bar and catppuccin themes it is 28 of 40 points, and in glass and island 22 of 40. That leaves strips of 6 to 9 points between the widget and the screen edge that count as outside it, so the pointer can't rest against the screen edge either.

Diagnosis

WidgetView's .onHover sets hovered, which goes straight to AppMenuView(hovering:), HoverLayoutView(hovered:) and SoundWidgetView(hovered:). Each one calls WidgetPresentation.setExpanded immediately, with no grace period (Sources/StableBar/Bar/WidgetView.swift, Sources/StableBar/MenuBar/AppMenuView.swift). Popups already allow for this: WidgetPopup.closeAfterHover uses a 200 ms grace and a triangle check on the pointer's path. Inline expansion has neither.

Related

Triaged by Claude Code (claude-opus-5-5).

Activity

  1. added
    needs-triage
    on Dec 1, 2026
  2. added a commit that references this issue on Dec 1, 2026
    c3a0126
  3. changed the title [-]App menus that expand on hover fold when the pointer drifts just off the bar[/-] [+]Keep app menus that expand on hover open while the pointer drifts just off the bar[/+] on Dec 1, 2026
  4. added
    enhancement
    P2
    and removed
    needs-triage
    on Dec 1, 2026
  5. M4n0x commented on Dec 1, 2026

    @M4n0x
    Collaborator

    Linked to #951 too, same strips between the widget and the screen edge, would be nice if the hover zone of #969 and the click zone there end up the same

  6. added a commit that references this issue on Dec 2, 2026
    58c95f2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions