akiran / akiran/react-slick

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

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

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

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