akiran / akiran/react-slick

Slider began to behave strangely

Aperta
#1,867 7 commenti 2 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
11.9k
Fork
2.1k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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)

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.