improved passthru behaviour hud when not recording MacOS

This commit is contained in:
webadderall
2026-08-24 18:05:16 +10:00
parent 90df22efaf
commit e717d086fe
2 changed files with 6 additions and 8 deletions
+4 -6
View File
@@ -452,11 +452,7 @@ function LaunchWindowContent() {
ref={hudContentRef}
className="flex items-center overflow-visible flex-col-reverse pointer-events-none"
>
<div
className="flex flex-col items-center pointer-events-auto p-2"
onMouseEnter={handleHudMouseEnter}
onMouseLeave={handleHudMouseLeave}
>
<div className="flex flex-col items-center pointer-events-none p-2">
<div
ref={hudBarTransformRef}
style={{
@@ -467,7 +463,9 @@ function LaunchWindowContent() {
ref={hudBarRef}
layout={shouldAnimateHudLayout}
transition={hudStateTransition}
className={`${styles.bar} launch-theme mb-2`}
className={`${styles.bar} launch-theme mb-2 pointer-events-auto`}
onMouseEnter={handleHudMouseEnter}
onMouseLeave={handleHudMouseLeave}
>
<div
// Linux compositors and non-passthrough Windows fallback windows
@@ -53,7 +53,7 @@ export function useLaunchHudInteractionState({
) {
window.electronAPI?.hudOverlaySetIgnoreMouse?.(true);
}
}, 300);
}, 0);
}
};
@@ -93,7 +93,7 @@ export function useLaunchHudInteractionState({
) {
window.electronAPI?.hudOverlaySetIgnoreMouse?.(true);
}
}, 300);
}, 0);
},
[openId, isHudDraggingRef, isWebcamPreviewDraggingRef, webcamPreviewDragStartRef],
);