Media Viewer: Fix zoom on mobile (#1673)

This commit is contained in:
Alexander Zinchuk 2022-01-26 23:29:25 +01:00
parent 4033c5b3e6
commit fa45e16dd8

View File

@ -117,7 +117,7 @@ const MediaViewerSlides: FC<OwnProps> = ({
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,