From 46c7115ba532abd1d6268aa004f5be324fc57f72 Mon Sep 17 00:00:00 2001 From: Alan Trebugeais Date: Sun, 10 May 2026 00:25:19 +0200 Subject: [PATCH] fix code rabbits comment which is valid --- src/components/launch/LaunchWindow.tsx | 1 + src/components/launch/hooks/useLaunchHudInteractionState.ts | 5 ++--- src/components/launch/popovers/PopoverScaffold.tsx | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/launch/LaunchWindow.tsx b/src/components/launch/LaunchWindow.tsx index 80d9d222..49547069 100644 --- a/src/components/launch/LaunchWindow.tsx +++ b/src/components/launch/LaunchWindow.tsx @@ -515,6 +515,7 @@ function LaunchWindowContent() {
; }) { const isMouseOverHudRef = useRef(false); + const timeoutRef = useRef(null); useEffect(() => { if (openId !== null) { @@ -31,7 +32,7 @@ export function useLaunchHudInteractionState({ const target = e.target as HTMLElement | null; if (!target) return; const isInteractive = !!target.closest( - '.pointer-events-auto, [data-radix-popper-content-wrapper], [class*="menuCard"], [class*="recordingWebcamPreview"]' + ".pointer-events-auto, [data-hud-interactive], [data-radix-popper-content-wrapper]" ); if (isInteractive) { @@ -69,8 +70,6 @@ export function useLaunchHudInteractionState({ window.electronAPI?.hudOverlaySetIgnoreMouse?.(false); }, []); - const timeoutRef = useRef(null); - const handleHudMouseLeave = useCallback((event: MouseEvent) => { const nextTarget = event.relatedTarget; if (nextTarget instanceof Node && event.currentTarget.contains(nextTarget)) { diff --git a/src/components/launch/popovers/PopoverScaffold.tsx b/src/components/launch/popovers/PopoverScaffold.tsx index 856de855..be349192 100644 --- a/src/components/launch/popovers/PopoverScaffold.tsx +++ b/src/components/launch/popovers/PopoverScaffold.tsx @@ -80,6 +80,7 @@ export function HudPopover({ {trigger}