akiran / akiran/react-slick

Infinite loop has a weird behavior at the end.

Offen
#1,315 4 Kommentare 11 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

Hi, I found a weird behavior on infinite sliding, when I arrive to the end of slide list and click next it go in the other way and when I click next again it start again from 1. It's not an 'infinite' behavior to me, it need to slide normally even if we reach the last slide and need to start from the first one.

Here is an example of this behavior, you just need to click next until it loop to the first one and you shall see the weirdness :).

https://codesandbox.io/s/2pppvv4q7p

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

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