CoderMJLee / MJRefresh

An easy way to use pull-to-refresh.
MIT License
13.79k stars 3.55k forks source link

UICollectionView开启mj_header的isCollectionViewAnimationBug,下拉刷新后底部的item会闪烁 #1523

Open jiasongs opened 3 years ago

jiasongs commented 3 years ago

描述bug UICollectionView开启mj_header的isCollectionViewAnimationBug,下拉刷新后底部的item会闪烁 「不开启isCollectionViewAnimationBug」时不会出现闪烁,但是会有其他issue如https://github.com/CoderMJLee/MJRefresh/issues/225 的问题

必现/偶发? 必现

怎么样重现这个bug 0、Demo如下MJRefresh-Issue.zip 1、打开Demo后进入UICollectionView示例,一定要开启isCollectionViewAnimationBug 2、「较大幅度的」「快速的」下拉刷新即可复现,观察UICollectionView「底部的Item」会有闪烁的情况,可见如下录屏 https://user-images.githubusercontent.com/22904757/124131467-69dc2100-dab2-11eb-8f23-bd2c934119ae.mov

你期望的结果是什么? UICollectionView下拉刷新的动画不会造成其他的副作用

运行环境

wolfcon commented 3 years ago

你可以尝试关闭动画, 通过调用setAnimationDisabled

jiasongs commented 3 years ago

你可以尝试关闭动画, 通过调用setAnimationDisabled

setAnimationDisabled后没有问题,但是没有动画很突兀,不如开启isCollectionViewAnimationBug的效果