From 08fb94245ba75f940cd60f35eee30f71eb7640b4 Mon Sep 17 00:00:00 2001 From: Justin Early Date: Thu, 21 Jan 2016 15:37:11 -0800 Subject: [PATCH 1/2] _.currentSlide can't be decimal value when we refresh we sometimes get a decimal value here if _options.slideToShow is a decimal value rather than integer value. i.e 4.45 vs 4. --- slick/slick.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slick/slick.js b/slick/slick.js index 633f31248..9b1b302a9 100644 --- a/slick/slick.js +++ b/slick/slick.js @@ -1542,7 +1542,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 From d989c84aa9330491e502685ee1d70e6650f626ab Mon Sep 17 00:00:00 2001 From: Justin Early Date: Thu, 21 Jan 2016 15:38:08 -0800 Subject: [PATCH 2/2] update to 1.5.10 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 210696161..ec53a4de4 100644 --- a/package.json +++ b/package.json @@ -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": {