akiran / akiran/react-slick

Infinite loop has a weird behavior at the end.

Aperta
#1,315 4 commenti 11 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

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

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.