Skip to content

Commit

Permalink
fix(virtual): fix issue with loop mode and initialSlide enabled
Browse files Browse the repository at this point in the history
fixes #6945
  • Loading branch information
nolimits4web committed Aug 30, 2023
1 parent 48c4e0a commit f4afd9d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/modules/virtual/virtual.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -315,9 +315,7 @@ export default function Virtual({ swiper, extendParams, on, emit }) {
swiper.params.watchSlidesProgress = true;
swiper.originalParams.watchSlidesProgress = true;

if (!swiper.params.initialSlide) {
update();
}
update();
});
on('setTranslate', () => {
if (!swiper.params.virtual.enabled) return;
Expand Down

0 comments on commit f4afd9d

Please sign in to comment.