Merge pull request #1205 from MiguelMachado-dev/fix/capacity-dock-hover-drift

fix(mac): stop Capacity Dock hover drift
This commit is contained in:
Resham Joshi 2026-08-31 10:48:15 -07:00 • committed by GitHub
commit 4907094af9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -213,6 +213,8 @@ final class CapacityDockController {
)
let panel = CapacityDockPanel()
let hosting = CapacityDockHostingView(rootView: view.environment(store))
// Panel geometry has one owner; intrinsic resizing races the frame animator.
hosting.sizingOptions = []
hosting.autoresizingMask = [.width, .height]
// At the top edge the menu-bar/notch safe-area inset would push the rail
// down, leaving a gap the bottom edge never shows. Opt the rail out of
@ -252,6 +254,8 @@ final class CapacityDockController {
)
let panel = CapacityDockPanel()
let hosting = CapacityDockHostingView(rootView: view.environment(store))
// Panel geometry has one owner; intrinsic resizing races the frame animator.
hosting.sizingOptions = []
hosting.autoresizingMask = [.width, .height]
hosting.interactiveShapeContains = { [weak model] point, bounds in
guard let model else { return false }