akiran / akiran/react-slick

Autoplay pauses and Autoplay timer resets upon window resize

Offen
#2,052 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
JavaScript
Sterne
11.9k
Forks
2.1k
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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!

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.