Fastest and only macOS Dictation app with on-device STT and custom trained AI enhancement model. Windows, iOS testflight! Android, Linux waitlist open! A local Wispr Flow alternative. Follow https://x.com/fluidvoiceapp for more
Fix position of bottom overlay for onHover event
grohith32709bb3e0c1655
diff --git a/Sources/Fluid/Views/BottomOverlayView.swift b/Sources/Fluid/Views/BottomOverlayView.swiftindex 05bfd553..8a423c26 100644--- a/Sources/Fluid/Views/BottomOverlayView.swift+++ b/Sources/Fluid/Views/BottomOverlayView.swift@@ -120,9 +120,11 @@ final class BottomOverlayWindowController {let heightChanged = abs(currentSize.height - newSize.height) > 0.5if widthChanged || heightChanged {- // Update window size only when it actually changed.- window.setContentSize(newSize)- hostingView.frame = NSRect(origin: .zero, size: newSize)+ // Resize from the current origin to avoid AppKit's default top-left anchoring,+ // which can visually push the overlay down before we re-position it.+ let currentOrigin = window.frame.origin+ let resizedFrame = NSRect(origin: currentOrigin, size: newSize)+ window.setFrame(resizedFrame, display: false)}// Re-position@@ -192,12 +194,8 @@ final class BottomOverlayWindowController {y = max(min(y, maxY), minY)- // Apply position using animator for smoother live transition if already visible- if window.isVisible {- window.animator().setFrameOrigin(NSPoint(x: x, y: y))- } else {- window.setFrameOrigin(NSPoint(x: x, y: y))- }+ // Apply position directly to avoid implicit frame animations during hover-driven resizes.+ window.setFrameOrigin(NSPoint(x: x, y: y))}}