Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

手动滚动时的问题 #10

Open
mxpasser opened this issue Dec 8, 2016 · 5 comments
Open

手动滚动时的问题 #10

mxpasser opened this issue Dec 8, 2016 · 5 comments

Comments

@mxpasser
Copy link

mxpasser commented Dec 8, 2016

@zzyspace 很实用的库。。。感谢
有个小问题想请教一下,在小屏幕设备上iPhone 4s ,iPhone5真机和模拟器,shouldLoop,autoScroll都为YES时,在手动滚动的时候,滚动结束时会有一个很慢的减速效果。

@zzyspace
Copy link
Owner

zzyspace commented Dec 9, 2016

@mxpasser 首先感谢提出 issue. 你说的这个问题我会跟进一下看看🙏

@mxpasser
Copy link
Author

mxpasser commented Dec 9, 2016

@zzyspace 我录制了一个gif。操作是手动设置了shouldLoop,autoScroll为yes,没有点switch那个设置,footer默认NO,然后手动滑动的时候有那个问题,然后点switch设置为on,再点一次设置为NO,然后手动滑动就没有这个问题了。
22

@zzyspace
Copy link
Owner

zzyspace commented Dec 9, 2016

再次感谢这么详细地描述方便我定位问题.
经过调试发现导致这个问题是因为 loop 模式下 ZY_TOTAL_ITEMS 导致 collectionView 的某个数值过大引起的在32位系统中滚动减速时的行为出现异常导致的, 调小ZY_TOTAL_ITEMS 中的因数即可. #d8f8905

@mxpasser
Copy link
Author

@zzyspace 谢谢你的回复。还有一个问题请教,就是如果一个VC里,有三个地方同时用到了这个滚动库,会有什么影响吗? 比如page index错乱之类的。

@zzyspace
Copy link
Owner

理论上不会的, 主要看你怎么用. 只要代理和数据源方法里面做好判断, 或者是使用三个不同的类来当做代理和数据源即可.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants