Skip to content

Commit

Permalink
remove listener for prevent click after prevent click on swipe end
Browse files Browse the repository at this point in the history
  • Loading branch information
vadymshymko committed Mar 21, 2024
1 parent d0f6a84 commit 11f9fbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@ function ReactSimplyCarousel({
function preventClick(clickEvent: TouchEvent | MouseEvent) {
clickEvent.preventDefault();
clickEvent.stopPropagation();
clickEvent.target?.addEventListener('click', preventClick as () => {});
clickEvent.target?.removeEventListener('click', preventClick as () => {});
}

function handleListSwipe(event: TouchEvent | MouseEvent) {
Expand Down

0 comments on commit 11f9fbc

Please sign in to comment.