We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a767920 commit f4772d2Copy full SHA for f4772d2
apps/desktop/src/renderer/src/components/ui/media/preview-media.tsx
@@ -36,7 +36,7 @@ const Wrapper: Component<{
36
37
const [showActionOverlay, setShowActionOverlay] = useState(false)
38
useEffect(() => {
39
- if (!containerRef.current) {
+ if (!containerRef.current || !showActions) {
40
return
41
}
42
const $container = containerRef.current
@@ -57,7 +57,7 @@ const Wrapper: Component<{
57
$container.removeEventListener("mousemove", handleMouseMove)
58
$container.removeEventListener("mouseleave", outOfContainer)
59
60
- }, [sideContent])
+ }, [sideContent, showActions])
61
62
return (
63
<div
0 commit comments