Skip to content

Create polished demo videos without editing skills. Mac/Windows/Linux

improved passthru behaviour hud when not recording MacOS

webadderall2163c840b71a
diff --git a/src/components/launch/LaunchWindow.tsx b/src/components/launch/LaunchWindow.tsx
index 9bc34c85..cb43ead1 100644
--- a/src/components/launch/LaunchWindow.tsx
+++ b/src/components/launch/LaunchWindow.tsx
@@ -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
diff --git a/src/components/launch/hooks/useLaunchHudInteractionState.ts b/src/components/launch/hooks/useLaunchHudInteractionState.ts
index 42f60b72..7e5bb905 100644
--- a/src/components/launch/hooks/useLaunchHudInteractionState.ts
+++ b/src/components/launch/hooks/useLaunchHudInteractionState.ts
@@ -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],
);