shenbengit / PagerGridLayoutManager

基于RecyclerView实现网格分页LayoutManager——PagerGridLayoutManager
MIT License
244 stars 26 forks source link

快速滑动时,onPagerIndexSelected只会回调一次 #27

Closed sulovely closed 1 year ago

sulovely commented 1 year ago

快速滑动时,比如从第0页滑到第6页,onPagerIndexSelected回调只会在滑动停止的时候会回调最后一页,导致指示器不会显示中间1,2,3,4,5页的状态 device-2023-10-12-164952.webm

shenbengit commented 1 year ago

只有在滚动完成时才会去计算当前页码位置。滚动中不计算。