fix(desktop): don't allow dragging close for video (#4215)

This commit is contained in:
Konv Suu 2025-07-21 13:29:00 +08:00 committed by GitHub
parent 47fe0aa76f
commit 037b8508f6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -281,7 +281,7 @@ export const PreviewMediaContent: FC<{
const { type } = media[0]!
const isVideo = type === "video"
return (
<Wrapper src={src} onZoomChange={onZoomChange} canDragClose>
<Wrapper src={src} onZoomChange={onZoomChange} canDragClose={!isVideo}>
{(handleZoomChange) => [
<Fragment key={src}>
{isVideo ? (