Skip to content

Commit

Permalink
Fixed issue kenwheeler#1189
Browse files Browse the repository at this point in the history
  • Loading branch information
dwielocha committed Nov 23, 2015
1 parent 63c5454 commit f9a1874
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion slick/slick.js
Original file line number Diff line number Diff line change
Expand Up @@ -1027,7 +1027,7 @@
verticalHeight = _.$slides.first().outerHeight(true);

if (_.options.infinite === true) {
if (_.slideCount > _.options.slidesToShow) {
if (_.slideCount >= _.options.slidesToShow) {
_.slideOffset = (_.slideWidth * _.options.slidesToShow) * -1;
verticalOffset = (verticalHeight * _.options.slidesToShow) * -1;
}
Expand Down

0 comments on commit f9a1874

Please sign in to comment.