akiran / akiran/react-slick

Slider began to behave strangely

Đang mở
#1,867 7 bình luận 2 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ả

Today my slick-slider starts to add one space before all `.slick-slide`. Problem is he add rules on class `.slick-track transform: translate3d(450px, 0px, 0px);`
And yesterday it was `.slick-track transform: translate3d(450px, 0px, 0px);`
I didn't change any code in this component. But I have lots of other changes. I roll back all code to yesterday but no luck.
My settings for react-slick are:
`const settings = {
dots: false,
infinite: false,
speed: 300,
slidesToShow: 1,
slidesToScroll: 1,
className: "pins-on-map",
centerPadding: "16px",
centerMode: true,
arrows: false
};`

I can't understand why is this happening. Few last days on intitial loading .slick-track was `transform: translate3d(0px, 0px, 0px);`

Why now add extra 450px?

![now](https://user-images.githubusercontent.com/6718298/90022357-b8be7380-dcb2-11ea-9751-e8db5351c7c8.png)
![yesterday](https://user-images.githubusercontent.com/6718298/90022363-b9570a00-dcb2-11ea-9bea-fc78b82bc9ab.png)

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.