From a19b167dda0963f73bbf8460f404461caf0b0996 Mon Sep 17 00:00:00 2001 From: juyeong1260 Date: Thu, 24 Sep 2020 18:03:19 +0900 Subject: [PATCH] fix: fix frame drop issue --- src/navigator/components/Card.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/navigator/components/Card.tsx b/src/navigator/components/Card.tsx index e55cc5089..c98e3b274 100644 --- a/src/navigator/components/Card.tsx +++ b/src/navigator/components/Card.tsx @@ -53,6 +53,7 @@ const Card: React.FC = (props) => { const onEdgeTouchMove = useCallback( (e: React.TouchEvent) => { if (screenEdge.startX) { + e.cancelable && e.preventDefault() x.current = e.touches[0].clientX as any } },