Skip to content

Commit

Permalink
Fix Issue
Browse files Browse the repository at this point in the history
akiran#764 I made the solution report as a chris-tmakers (My business account), it will be solve active and inactive items on screen.
  • Loading branch information
vilopco authored Dec 4, 2019
1 parent 018bcdf commit d8433cc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/track.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ const getSlideClasses = spec => {
spec.currentSlide <= index &&
index < spec.currentSlide + spec.slidesToShow;
}
let inferiorlimit = spec.slideCount - spec.slidesToShow
if (index >= inferiorlimit && index < spec.currentSlide + spec.slidesToShow) {
slickActive = true;
}
let slickCurrent = index === spec.currentSlide;
return {
"slick-slide": true,
Expand Down

0 comments on commit d8433cc

Please sign in to comment.