Here, the code checking if the currentSlide + slick.options.slidesToScroll value is equal to total slides length.
In my case, the first page shows first 4 slides and when I came to the second page, currentSlide + slick.options.slidesToScroll is 8 which is greater than total sliders length. so "last" value is showing as false event it is the last page.
Hi, I am getting the "last" value in afterChange event as false, when I have 7 slides in my slider with the following configuration
I checked the code and I think below is the issue
Here, the code checking if the currentSlide + slick.options.slidesToScroll value is equal to total slides length.
In my case, the first page shows first 4 slides and when I came to the second page, currentSlide + slick.options.slidesToScroll is 8 which is greater than total sliders length. so "last" value is showing as false event it is the last page.
Please fix