akiran / akiran/react-slick

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

未关闭
#1,635 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
11.9k
派生
2.1k
PR 合并指标
30 天内没有已合并 PR

描述

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

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。