swiper

Open full view…

PrevEl and nextEl not working

noobishpro
Wed, 10 Jan 2018 22:47:28 GMT

scheduleSwiper = new Swiper('#schedule_swiper', { init: false, initialSlide: currentSwiperIndex, width: device_width(), spaceBetween: 0, navigation: { nextEl: "#schedule_next", prevEl: "#schedule_prev" }, centeredSlides: true }); Using swiper's latest version (4.0.7) So, this (above) is my code to init the swiper. I've switched from 3.4.7 and must say that I'm bumping up against a whole lot of bugs. However, I've found a way around most of them. Now, however, suddenly the next and previous buttons (custom) don't work anymore. They aren't inside the #scheduleswiper wrapper, but that shouldn't matter, should it? They did work with this version before. I'm unsure of what I have done wrong to find out they aren't working anymore.

noobishpro
Wed, 10 Jan 2018 23:37:38 GMT

I have currently fixed this by setting a custom binding in combination with swiper.slideNext and slidePrev