ZCycleView icon indicating copy to clipboard operation
ZCycleView copied to clipboard

分页滚动效果与系统分页滚动效果相差较大,建议加上速率判断

Open f2yu opened this issue 6 years ago • 3 comments

滑动过半才会滚动到上一页/下一页,如果滑动较快且没有过半,回弹的速率就会很大,显得很突兀,建议加上速率的过滤条件

f2yu avatar Oct 15 '18 13:10 f2yu

offset.x+=minSpace if abs(velocity.x) > 0.1 && offset.x == self.oldOffset.x { if velocity.x < 0 { offset.x -= (itemSize.width + minimumLineSpacing) } else { offset.x += (itemSize.width + minimumLineSpacing) } }

f2yu avatar Oct 15 '18 13:10 f2yu

有demo吗,欢迎pr

MQZHot avatar Nov 08 '18 07:11 MQZHot

最近比较忙,在原来的代码基础上临时做了些修改,没有进行好的整理,过段时间整理好了再提

f2yu avatar Nov 14 '18 03:11 f2yu