Repository navigation
fix: open tooltips at their size instead of zooming in - #245
Merged
Merged
Conversation
A tooltip is ordered in at full opacity with the window's default animation behavior, so macOS played its zoom-in on it: the tooltip first composited shrunken with blurred text, then grew to its size over about 35 ms. Popups fade in from transparent and weren't affected. Fixes #244
|
🎉 This PR is included in version 0.6.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This was referenced Oct 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
When a widget's tooltip opened, it showed up shrunken with blurred text for a moment, then grew to its size. Fixes #244.
Changes
WidgetPopup.showTooltipsetsanimationBehavior = .noneon the tooltip's panel. A tooltip is ordered in at full opacity, so macOS played its window zoom-in on it. The bar's other panels already turn it off. Click popups weren't affected because they start atalphaValue = 0and fade in themselves, so they're unchanged.hoverTooltipsFitTheirTextAndDoNotCaptureClicksnow expects the tooltip panel'sanimationBehaviorto be.none.Testing
swift test --filter "PresentationIntegrationTests|NativePresentationTests|Popup|Tooltip": 30 tests pass. The new expectation failed before the fix.CGWindowListCreateImageevery ~1.5 ms fromorderFront, on a 1× display:Merging
A single commit, so any merge method works.
Claude Opus 5.5 via Claude Code