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

fix the logic: stop cycle when SliderLayout has only one SliderView #186

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

yinyinnie
Copy link

当组件遇到一张图片的情况下,我个人觉得不需要自动轮播,并且也不需要手动滑动

@yinyinnie
Copy link
Author

Prevent conflicts with other components's "shape" attr, so modify attr "shape" to "daimajia_slider_shape"

@yinyinnie yinyinnie closed this Feb 2, 2016
@yinyinnie yinyinnie reopened this Feb 2, 2016
@Mauker1
Copy link

Mauker1 commented Mar 2, 2016

I tried this fix, but when I have more than 1 slide, the autocycle doesn't start automatically anymore.

@yinyinnie
Copy link
Author

@Mauker1 I just intercept the touch event when layout have only one slide. I has tested the code, it's ok

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

Successfully merging this pull request may close these issues.

2 participants