Make it <= 1

This commit is contained in:
Lim Chee Aun 2023-03-28 10:30:06 +08:00
parent 24e90a5cdb
commit 68829f6f76

View file

@ -49,7 +49,7 @@ function Media({ media, showOriginal, autoAnimate, onClick = () => {} }) {
img.style.setProperty('transform', value); 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' : '';
} }
}, []); }, []);