diff --git a/src/components/media.jsx b/src/components/media.jsx index 585fa0e0..3fa8f87c 100644 --- a/src/components/media.jsx +++ b/src/components/media.jsx @@ -49,7 +49,7 @@ function Media({ media, showOriginal, autoAnimate, onClick = () => {} }) { img.style.setProperty('transform', value); - img.closest('.media-zoom').style.touchAction = scale === 1 ? 'pan-x' : ''; + img.closest('.media-zoom').style.touchAction = scale <= 1 ? 'pan-x' : ''; } }, []);