From 68829f6f76232cba78c82360e62af1252481e57b Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Tue, 28 Mar 2023 10:30:06 +0800 Subject: [PATCH] Make it <= 1 --- src/components/media.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' : ''; } }, []);