akiran / akiran/react-slick

Autoplay pauses and Autoplay timer resets upon window resize

Aperta
#2,052 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

Hey everyone. I'm not sure if this is intended, but the autoplay timer resets whenever window gets resized.
If it is intended, is there a way to make it so autoplay timer keeps going/not reset even though window gets resized?

Below is the code: If you resize the window, autoplay pauses and resets autoplay timer to 0. Once you stop resizing the window, autoplay resumes and timer starts from 0.

https://codesandbox.io/s/react-slick-playground-forked-vf8o6

Thanks for the help!

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.