You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
292 B
10 lines
292 B
export default function slideToLoop(index = 0, speed = this.params.speed, runCallbacks = true, internal) {
|
|
const swiper = this;
|
|
let newIndex = index;
|
|
|
|
if (swiper.params.loop) {
|
|
newIndex += swiper.loopedSlides;
|
|
}
|
|
|
|
return swiper.slideTo(newIndex, speed, runCallbacks, internal);
|
|
}
|