akiran / akiran/react-slick

currentSlide from afterChange event shows decimal when using SlidesToShow as decimal and infinite:false

未关闭
#2,373 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
11.9k
派生
2.1k
PR 合并指标
30 天内没有已合并 PR

描述

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

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。