You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by cx...@apache.org on 2017/03/24 09:30:54 UTC

incubator-weex git commit: remove performSelector:@selector(scrollViewDidEndScrollingAnimation:) to avoid crash. and scrollstop envent be disabled .

Repository: incubator-weex
Updated Branches:
  refs/heads/0.11-dev 3ef1336f8 -> 1fb06cda0


remove performSelector:@selector(scrollViewDidEndScrollingAnimation:) to avoid crash. and scrollstop envent be disabled .


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

Branch: refs/heads/0.11-dev
Commit: 1fb06cda0fd0da37985692274aeabc571bbd191f
Parents: 3ef1336
Author: LiuHongfeng(GuJian) <La...@gmail.com>
Authored: Fri Mar 24 17:11:48 2017 +0800
Committer: LiuHongfeng(GuJian) <La...@gmail.com>
Committed: Fri Mar 24 17:11:48 2017 +0800

----------------------------------------------------------------------
 ios/sdk/WeexSDK/Sources/Component/WXSliderComponent.m | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/1fb06cda/ios/sdk/WeexSDK/Sources/Component/WXSliderComponent.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Component/WXSliderComponent.m b/ios/sdk/WeexSDK/Sources/Component/WXSliderComponent.m
index c09654b..c85ba63 100644
--- a/ios/sdk/WeexSDK/Sources/Component/WXSliderComponent.m
+++ b/ios/sdk/WeexSDK/Sources/Component/WXSliderComponent.m
@@ -73,7 +73,7 @@
     if (_scrollView) {
         _scrollView.delegate = nil;
     }
-    [NSObject cancelPreviousPerformRequestsWithTarget:self];
+    //[NSObject cancelPreviousPerformRequestsWithTarget:self];
 }
 
 - (void)setIndicator:(WXIndicatorView *)indicator
@@ -297,9 +297,9 @@
     if (self.delegate && [self.delegate respondsToSelector:@selector(sliderView:sliderViewDidScroll:)]) {
         [self.delegate sliderView:self sliderViewDidScroll:self.scrollView];
     }
-    [NSObject cancelPreviousPerformRequestsWithTarget:self];
+    //[NSObject cancelPreviousPerformRequestsWithTarget:self];
     //ensure that the end of scroll is fired.
-    [self performSelector:@selector(scrollViewDidEndScrollingAnimation:) withObject:nil afterDelay:0.3];
+    //[self performSelector:@selector(scrollViewDidEndScrollingAnimation:) withObject:nil afterDelay:0.3];
 }
 
 - (void)scrollViewWillBeginDragging:(UIScrollView *)scrollView