Skip to content

Commit

Permalink
fix(loop): update slides grids before loop fix when spv is "auto"
Browse files Browse the repository at this point in the history
fixes #6599
  • Loading branch information
nolimits4web committed Apr 21, 2023
1 parent 515e0b2 commit 035e79d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/loop/loopFix.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ export default function loopFix({
}

swiper.recalcSlides();
if (params.slidesPerView === 'auto') {
swiper.updateSlides();
}
if (params.watchSlidesProgress) {
swiper.updateSlidesOffset();
}
Expand Down

0 comments on commit 035e79d

Please sign in to comment.