akiran / akiran/react-slick

visible image and index received from before-/afterChange are out of sync

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

In my app I use the `Slider` to display a list of images. I also make use of the `afterChange` callback because I display additional information about the displayed image (date, photo number, ...).

If you click very fast through the gallery, the afterChange callback will be skipped now and then, which leads to the fact that the displayed information does not correspond with the visible picture any more

![Bildschirmfoto 2019-09-19 um 14 36 37](https://user-images.githubusercontent.com/6348294/65244592-31d93900-daeb-11e9-85df-1a430943b28f.png)

https://codesandbox.io/s/react-slick-playground-phyw7

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.