Skip to content

Commit

Permalink
Merge pull request kenwheeler#2057 from earlyster/master
Browse files Browse the repository at this point in the history
End of carousel and resize with decimal value for slides to show
  • Loading branch information
kenwheeler committed Jan 24, 2016
2 parents 3d724c0 + d989c84 commit 324f9c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "slick-carousel",
"version": "1.5.9",
"version": "1.5.10",
"description": "the last carousel you'll ever need",
"main": "slick/slick.js",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion slick/slick.js
Original file line number Diff line number Diff line change
Expand Up @@ -1637,7 +1637,7 @@

var _ = this, currentSlide, firstVisible;

firstVisible = _.slideCount - _.options.slidesToShow;
firstVisible = Math.floor(_.slideCount - _.options.slidesToShow);

// check that the new breakpoint can actually accept the
// "current slide" as the current slide, otherwise we need
Expand Down

0 comments on commit 324f9c3

Please sign in to comment.