Skip to content

Commit f4772d2

Browse files
authored
fix: hide video preview's action overlay (#3201)
1 parent a767920 commit f4772d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/desktop/src/renderer/src/components/ui/media/preview-media.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const Wrapper: Component<{
3636

3737
const [showActionOverlay, setShowActionOverlay] = useState(false)
3838
useEffect(() => {
39-
if (!containerRef.current) {
39+
if (!containerRef.current || !showActions) {
4040
return
4141
}
4242
const $container = containerRef.current
@@ -57,7 +57,7 @@ const Wrapper: Component<{
5757
$container.removeEventListener("mousemove", handleMouseMove)
5858
$container.removeEventListener("mouseleave", outOfContainer)
5959
}
60-
}, [sideContent])
60+
}, [sideContent, showActions])
6161

6262
return (
6363
<div

0 commit comments

Comments
 (0)