mirror of
https://github.com/danog/telegram-tt.git
synced 2025-01-22 05:11:55 +01:00
Media Viewer: Fix zoom on mobile (#1673)
This commit is contained in:
parent
4033c5b3e6
commit
fa45e16dd8
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user