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 2cd7cfa commit d0f6a84
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit d0f6a84

Please sign in to comment.