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

左右的弹跳效果无法关闭,也找不到如何设置滑条长度的地方 #22

Open
vistaLin opened this issue Jul 29, 2016 · 5 comments

Comments

@vistaLin
Copy link

求解

@agdsdl
Copy link
Owner

agdsdl commented Aug 1, 2016

DLSlideView.mm 278行 处理左右弹跳
if (panToIndex < 0 || panToIndex >= [self.dataSource numberOfControllersInDLSlideView:self]) {
panToIndex_ = panToIndex;
[self repositionForOffsetX:offsetx/2.0f];
}
滑块长度修改DLScrollTabbarView.mm中的trackView_

@vistaLin
Copy link
Author

vistaLin commented Aug 1, 2016

好的,谢谢

@bestmmmz
Copy link

滑块长度修改DLScrollTabbarView.mm中的trackView_
修改之后都无效果, 请问是怎么回事,

@agdsdl
Copy link
Owner

agdsdl commented Sep 22, 2016

请检查你的代码

@nobodyJee
Copy link

1 左右弹跳的效果要关闭的,不然会出现 bug。 比如向左边滑动太多时 别松手然后点击一个 tab 就会出现计算 pantoIndex 错误。这个可以关闭左右弹跳效果解决这个 bug 也可以对 pantodindex做一下计算(我没用这种方法)
2 [self.baseViewController addChildViewController:newvc]; 这个方法要做一下判断 如果 newvc 为空的情况下就不要添加了 否则会崩溃 虽然这种现象很少出现 但是这个地方各人认为还是应该做一下判断 比较安全点
3 多谢作者的贡献,这个是重点 (^ _ ^) @agdsdl

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

4 participants