Skip to content

Commit

Permalink
Merge pull request kenwheeler#2001 from ImmobilienScout24/master
Browse files Browse the repository at this point in the history
[lazyLoading] Fix partiallly visible elements
  • Loading branch information
kenwheeler committed Feb 7, 2016
2 parents 84481f2 + e4f455c commit 26c1db8
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 @@ -1487,7 +1487,7 @@
}
} else {
rangeStart = _.options.infinite ? _.options.slidesToShow + _.currentSlide : _.currentSlide;
rangeEnd = rangeStart + _.options.slidesToShow;
rangeEnd = Math.ceil(rangeStart + _.options.slidesToShow);
if (_.options.fade === true) {
if (rangeStart > 0) rangeStart--;
if (rangeEnd <= _.slideCount) rangeEnd++;
Expand Down

0 comments on commit 26c1db8

Please sign in to comment.