Skip to content

How do you cancel a slider event programmatically? #4764

Answered by ajaypillay
ajaypillay asked this question in Q&A
Discussion options

You must be logged in to vote

Sorry, I managed to accomplish this with swiper.current.swiper.disable(). It was a mistake on my part as I have nested swiping and I was testing the disabling on the wrong nested Swiper. Also I don't actually cancel any Swiper movements, I just disable it if the long press event is started, and enable it if the long press event is canceled or after the overlay has disappeared.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ajaypillay
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant