Try fix swipe bug on Chrome Android

This commit is contained in:
Lim Chee Aun 2023-04-15 11:45:34 +08:00
parent 5bbff378d3
commit fcf11f7d34

View file

@ -56,7 +56,7 @@ function Media({ media, to, showOriginal, autoAnimate, onClick = () => {} }) {
}
media.closest('.media-zoom').style.touchAction =
scale <= 1 ? 'pan-x' : '';
scale <= 1.01 ? 'pan-x' : '';
}
}, []);