GULP DIST
This commit is contained in:
@@ -57,19 +57,19 @@ export default function Navigation({
|
||||
$nextEl,
|
||||
$prevEl
|
||||
} = swiper.navigation;
|
||||
toggleEl($prevEl, swiper.isBeginning);
|
||||
toggleEl($nextEl, swiper.isEnd);
|
||||
toggleEl($prevEl, swiper.isBeginning && !swiper.params.rewind);
|
||||
toggleEl($nextEl, swiper.isEnd && !swiper.params.rewind);
|
||||
}
|
||||
|
||||
function onPrevClick(e) {
|
||||
e.preventDefault();
|
||||
if (swiper.isBeginning && !swiper.params.loop) return;
|
||||
if (swiper.isBeginning && !swiper.params.loop && !swiper.params.rewind) return;
|
||||
swiper.slidePrev();
|
||||
}
|
||||
|
||||
function onNextClick(e) {
|
||||
e.preventDefault();
|
||||
if (swiper.isEnd && !swiper.params.loop) return;
|
||||
if (swiper.isEnd && !swiper.params.loop && !swiper.params.rewind) return;
|
||||
swiper.slideNext();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user