currentSlide from afterChange event shows decimal when using SlidesToShow as decimal and infinite:false
Ouverte
- Langage dominant
- JavaScript
- Étoiles
- 11.9k
- Forks
- 2.1k
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
Many would like to have a peek of next slide, but without centerMode.
Using slidesToShow as a decimal like 1.3 works but causes issue with currentSlide coming from afterChange event being a decimal when infinite:false
const settings = {
dots: false,
slidesToShow: 1.3,
infinite: false,
};
https://codesandbox.io/p/sandbox/react-slick-playground-forked-6xfj9n?file=%2Findex.js%3A13%2C23
Guide de contribution
Ouvrir le guide de contribution
Évaluation
Cette issue n'a pas encore été évaluée.