Skip to content

Commit

Permalink
fix: click outside to click area
Browse files Browse the repository at this point in the history
  • Loading branch information
hyoban committed Nov 14, 2024
1 parent 75e0da2 commit 51194ac
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions apps/renderer/src/components/ui/media/preview-media.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -349,10 +349,7 @@ const FallbackableImage: FC<
const [ref, { width: imgWidth }] = useMeasure()

return (
<div
className={cn("center flex size-full flex-col", containerClassName)}
onClick={stopPropagation}
>
<div className={cn("center flex size-full flex-col", containerClassName)}>
{!isAllError && (
<TransformWrapper
wheel={{ smoothStep: 0.008 }}
Expand All @@ -372,6 +369,9 @@ const FallbackableImage: FC<
}}
contentClass={wrapperClass}
contentStyle={wrapperStyle}
wrapperProps={{
onClick: stopPropagation,
}}
>
<img
ref={ref}
Expand Down

0 comments on commit 51194ac

Please sign in to comment.