akiran / akiran/react-slick

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

Đang mở
#2,373 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
JavaScript
Star
11.9k
Fork
2.1k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.