diff --git a/src/components/media.jsx b/src/components/media.jsx index 2fdbce39..585fa0e0 100644 --- a/src/components/media.jsx +++ b/src/components/media.jsx @@ -48,6 +48,8 @@ function Media({ media, showOriginal, autoAnimate, onClick = () => {} }) { const value = make3dTransformValue({ x, y, scale }); img.style.setProperty('transform', value); + + img.closest('.media-zoom').style.touchAction = scale === 1 ? 'pan-x' : ''; } }, []);