From fcf11f7d34946a3a9d25f11762f40c5127d31061 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Sat, 15 Apr 2023 11:45:34 +0800 Subject: [PATCH] Try fix swipe bug on Chrome Android --- 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 793f780a..8dc0e923 100644 --- a/src/components/media.jsx +++ b/src/components/media.jsx @@ -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' : ''; } }, []);