Skip to content

fix: keep hover popups open while moving toward them - #361

Merged
Seb-GRAF merged 1 commit into
mainfrom
fix/popup-safe-triangle
Oct 28, 2026
Merged

Seb-GRAF merged 1 commit into
mainfrom
fix/popup-safe-triangle

Conversation

@Seb-GRAF

Copy link
Copy Markdown
Collaborator

Problem

Fixes #360.

Moving diagonally from Menu bar items into its row can cross a neighbouring widget and replace the row with that widget's tooltip. Slow movement across the gap can also exceed the fixed 200 ms close delay.

Changes

  • Keep an interactive hover popup open while the pointer moves toward it through an invisible triangle from the departing widget to the popup's top edge. Delay both closing and replacement by a neighbouring hover target along that path.
  • End that protection when the pointer stops or leaves the triangle. Entering the popup cancels the pending action; existing click and pin behaviour remains in place. Ordinary text tooltips do not start a protected path.
  • Document the behaviour in the popup and Menu bar items guides. This adds no configuration property, so decoding, layers, Settings, CLI editing and examples need no changes.

Testing

  • Nine focused Swift tests (20 cases) pass on the PR branch. They cover triangle edges and negative screen coordinates, slow movement through the normal popup gap, neighbouring-tooltip replacement, entering, stopping, leaving, cancellation, and existing click and pin behaviour.
  • git diff --check and commitlint pass.
  • This changes pointer handling without changing the popup's appearance or layout. Tests use offscreen AppKit windows and supplied pointer positions. Live pointer feel and a before/after interaction recording remain unchecked; no second bar was launched on the maintainer's screen.

Merging

One fix: commit. Merge or rebase merge keeps the commit in the patch-release changelog.

gpt-6-astra via the Codex harness in T3 Code.

@Seb-GRAF
Seb-GRAF enabled auto-merge (rebase) October 28, 2026 10:05
@Seb-GRAF
Seb-GRAF merged commit 0fe1fed into main Oct 28, 2026
7 checks passed
@Seb-GRAF
Seb-GRAF deleted the fix/popup-safe-triangle branch October 28, 2026 10:08
@stablebar-releases

Copy link
Copy Markdown

🎉 This PR is included in version 0.9.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hover popups disappear while moving diagonally into them

1 participant