12207480 / TYCyclePagerView

a simple and usefull cycle pager view ,and auto scroll banner view(轮播图) ,include pageControl for iOS,support Objective-C and swift
MIT License
1.79k stars 326 forks source link

1.多次点击item 在item滚动的时候会被打断 #12

Open PMBRK opened 6 years ago

PMBRK commented 6 years ago

解决办法 将tycyclepageview 中的 setcontentoffset:offset animation :animation 改成 [UIView animateWithDuration:0.2 animations:^{ _collectionView.contentOffset = CGPointMake(offset, _collectionView.contentOffset.y); }];

Azraeltulips commented 6 years ago

contentOffset这个不是只读属性吗?也能修改? 我也遇到这个问题了,item滚动时点一下 就停止了

cbb0405 commented 6 years ago

是的,切换banner的时候点击item,滚动会停在两张图片中间,用了一楼的方法,是可以防止滚动时点击,但是滚动动效明显不好看了,会出现前一页是空白页 把0.2 改0.5 就看的很明显了