akiran / akiran/react-slick

problem with responsive when mounting the component

Aperta
#2,333 6 commenti 0 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

When im in responsive mode this add a translate x value in slick-list and should be 0

```js
const settings = {
slidesToShow: 5,
slidesToScroll: 1,
speed: 500,
arrows: false,
infinite: false,
responsive: [
{
breakpoint: 1300,
settings: {
slidesToShow: 2,
slidesToScroll: 1,
},
},
{
breakpoint: 1600,
settings: {
slidesToShow: 3,
slidesToScroll: 1,
},
},
],
}
```

![image](https://github.com/akiran/react-slick/assets/67299584/1fb16025-efb0-4e8f-9a30-12f93e82138f)

only after touching next or prev does it look good
![image](https://github.com/akiran/react-slick/assets/67299584/b82bb3a3-17e1-4bac-9cbc-95f8e522c7e0)

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.