From 5356b5c6e20e35d8e9eec11dd6adecd1d4e5fe62 Mon Sep 17 00:00:00 2001 From: puxiao Date: Fri, 24 Feb 2023 11:33:46 +0800 Subject: [PATCH] Update useTouchMove.ts --- src/hooks/useTouchMove.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/useTouchMove.ts b/src/hooks/useTouchMove.ts index dcb126a2..b9df9b5a 100644 --- a/src/hooks/useTouchMove.ts +++ b/src/hooks/useTouchMove.ts @@ -128,7 +128,7 @@ export default function useTouchMove( // No need to clean up since element removed ref.current.addEventListener('touchstart', onProxyTouchStart, { passive: false }); - ref.current.addEventListener('wheel', onProxyWheel); + ref.current.addEventListener('wheel', onProxyWheel, { passive: false }); return () => { document.removeEventListener('touchmove', onProxyTouchMove);