Skip to content
This repository was archived by the owner on Feb 24, 2023. It is now read-only.

Commit 165335e

Browse files
author
Łukasz Florczak
committed
SlidesToShow fix for non-infinite mode
1 parent aa69623 commit 165335e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Agile.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@
465465
let transform = n * this.width.slide
466466
467467
if (!this.settings.infinite && this.slidesCount - n < this.settings.slidesToShow) {
468-
transform -= this.width.slide * (this.slidesCount - n)
468+
transform = this.width.slide * (this.slidesCount - this.settings.slidesToShow)
469469
}
470470
471471
this.transform = transform

0 commit comments

Comments
 (0)