diff --git a/src/components/mediaViewer/MediaViewerSlides.tsx b/src/components/mediaViewer/MediaViewerSlides.tsx index 121a1f93..f7795c79 100644 --- a/src/components/mediaViewer/MediaViewerSlides.tsx +++ b/src/components/mediaViewer/MediaViewerSlides.tsx @@ -117,7 +117,7 @@ const MediaViewerSlides: FC = ({ if (!IS_TOUCH_ENV || !containerRef.current || isZoomed || !activeMessageId) { return undefined; } - let lastTransform = { ...transformRef.current }; + let lastTransform = { x: 0, y: 0, scale: 1 }; const lastDragOffset = { x: 0, y: 0,