+ [ios] add comment @notdanger

Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/c1f3f8f1
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/c1f3f8f1
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/c1f3f8f1

Branch: refs/heads/0.14-dev
Commit: c1f3f8f177cc7acc0cd358b209f82c92b9ede821
Parents: e8a575f
Author: 齐山 <sunjjb...@163.com>
Authored: Tue Jun 13 10:39:24 2017 +0800
Committer: 齐山 <sunjjb...@163.com>
Committed: Tue Jun 13 10:39:24 2017 +0800

----------------------------------------------------------------------
 ios/sdk/WeexSDK/Sources/Component/WXCycleSliderComponent.m | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/c1f3f8f1/ios/sdk/WeexSDK/Sources/Component/WXCycleSliderComponent.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Component/WXCycleSliderComponent.m 
b/ios/sdk/WeexSDK/Sources/Component/WXCycleSliderComponent.m
index 1b50fda..690c709 100644
--- a/ios/sdk/WeexSDK/Sources/Component/WXCycleSliderComponent.m
+++ b/ios/sdk/WeexSDK/Sources/Component/WXCycleSliderComponent.m
@@ -209,6 +209,7 @@ typedef NS_ENUM(NSInteger, Direction) {
         if (_infinite) {
             [self.scrollView setContentOffset:CGPointMake(self.width * 2, 0) 
animated:YES];
         } else {
+            // the currentindex will be set at the end of animation
             NSInteger nextIndex = self.currentIndex + 1;
             if(nextIndex < _itemViews.count) {
                 [self.scrollView setContentOffset:CGPointMake(nextIndex * 
self.width, 0) animated:YES];

Reply via email to