Skip to content

Commit 51194ac

Browse files
committed
fix: click outside to click area
1 parent 75e0da2 commit 51194ac

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -349,10 +349,7 @@ const FallbackableImage: FC<
349349
const [ref, { width: imgWidth }] = useMeasure()
350350

351351
return (
352-
<div
353-
className={cn("center flex size-full flex-col", containerClassName)}
354-
onClick={stopPropagation}
355-
>
352+
<div className={cn("center flex size-full flex-col", containerClassName)}>
356353
{!isAllError && (
357354
<TransformWrapper
358355
wheel={{ smoothStep: 0.008 }}
@@ -372,6 +369,9 @@ const FallbackableImage: FC<
372369
}}
373370
contentClass={wrapperClass}
374371
contentStyle={wrapperStyle}
372+
wrapperProps={{
373+
onClick: stopPropagation,
374+
}}
375375
>
376376
<img
377377
ref={ref}

0 commit comments

Comments
 (0)