swiper

Open full view…

How to lock/unlock swiping to prev/next slide

nsharony
Wed, 27 Dec 2017 12:45:48 GMT

Hello. I checked out the API documentation, but I am unable to find methods that allow me to control whether swiping to the prev/next slides are enabled or not. I would like to be able to programatically prevent the user from swiping to the previous slide and then to re-enable it. Is that possible?

nsharony
Wed, 27 Dec 2017 13:06:54 GMT

Found the solution: mySwiper.allowSlideNext mySwiper.allowSlidePrev