This isn't as much as a bug report as a feature request, and might even not be something that is related to the vue-wrapper here, but more to the swiper engine behind. I am just curious as how to properly have 1 slider act as a navigation for another, besides setting the controller.control = $slider, that did not work great at all :P
As i see here: https://swiperjs.com/api/ that the slideChange event does not emit any parameteres, not even an active/previous index :/!?!??! So i have to manually go and get the index:
Vue.js version and component version
"swiper": "5.4.5", "vue-awesome-swiper": "^4.1.1",
This isn't as much as a bug report as a feature request, and might even not be something that is related to the vue-wrapper here, but more to the swiper engine behind. I am just curious as how to properly have 1 slider act as a navigation for another, besides setting the controller.control = $slider, that did not work great at all :P
As i see here: https://swiperjs.com/api/ that the slideChange event does not emit any parameteres, not even an active/previous index :/!?!??! So i have to manually go and get the index:
handleSlideChange() { const thumbIndex = this.$refs.thumbs.$swiper.activeIndex; this.$refs.slider.$swiper.slideTo(thumbIndex, 0); }
Really seems cumbersome, is there a better way to do this?