akiran / akiran/react-slick

image flicker when loading carousel on iphone

Aperta
#1,910 0 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

"react-slick": "^0.25.2",

So I'm having an issue when a carousel page is visited on iPhone, it works perfectly on pc, in which there's a momentary flicker because image position 1 is loaded first then quickly reverts to image position 0, even though `initialSlide: 0`. How do I resolve this?

My code is as follows:

```
const settings = {
dots: true,
infinite: true,
slidesToShow: 1,
slidesToScroll: 1,
autoplay: true,
speed: 2000,
autoplaySpeed: 2000,
initialSlide: 0,
cssEase: "linear"
}

return (

{dataSource.map((src, index) => (




))}

)
```

You can see the issue at https://frontend.theomer.co.uk/ when you click any item.
My repo can be found here: https://github.com/TheoMer/Prisma2-Migration

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.