From d0f6a844900244cf6527f74a3de83027f977d87e Mon Sep 17 00:00:00 2001 From: Vadym Shymko Date: Thu, 21 Mar 2024 22:46:02 +0200 Subject: [PATCH] remove listener for prevent click after prevent click on swipe end --- src/index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/index.tsx b/src/index.tsx index 4d7ef99..d7c0bc8 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -681,6 +681,7 @@ function ReactSimplyCarousel({ function preventClick(clickEvent: TouchEvent | MouseEvent) { clickEvent.preventDefault(); clickEvent.stopPropagation(); + clickEvent.target?.addEventListener('click', preventClick as () => {}); } function handleListSwipe(event: TouchEvent | MouseEvent) {