Skip to content
Browse files

don't flash scroll indicators while scrolling.

This fixes both slowness and the vanishing scroll indicator problem on iOS4.
It's also on IOS5 no good idea, but Apple seems to have fixed the vanishing indicator issue there.
  • Loading branch information...
1 parent 080cda3 commit 5338da78b1f828ccac6e240bf4a9aa8611661590 @steipete steipete committed with Dec 14, 2011
Showing with 2 additions and 5 deletions.
  1. +2 −5 GMGridView/API/GMGridView.m
View
7 GMGridView/API/GMGridView.m
@@ -26,7 +26,7 @@
// THE SOFTWARE.
//
-#import <Quartzcore/QuartzCore.h>
+#import <QuartzCore/QuartzCore.h>
#import "GMGridView.h"
#import "GMGridViewCell+Extended.h"
#import "GMGridViewLayoutStrategies.h"
@@ -174,7 +174,6 @@ - (id)initWithFrame:(CGRect)frame
/////////////////////////////
// Transformation gestures :
-
_pinchGesture = [[UIPinchGestureRecognizer alloc] initWithTarget:self action:@selector(pinchGestureUpdated:)];
_pinchGesture.delegate = self;
[self addGestureRecognizer:_pinchGesture];
@@ -220,7 +219,7 @@ - (id)initWithFrame:(CGRect)frame
}
[panGestureRecognizer setMaximumNumberOfTouches:1];
[panGestureRecognizer requireGestureRecognizerToFail:_sortingPanGesture];
-
+
self.layoutStrategy = [GMGridViewLayoutStrategyFactory strategyFromType:GMGridViewLayoutVertical];
self.mainSuperView = self;
@@ -265,8 +264,6 @@ - (void)layoutSubviews
[self recomputeSize];
[self relayoutItemsAnimated:NO];
[self loadRequiredItems];
-
- [_scrollView flashScrollIndicators];
}

0 comments on commit 5338da7

Please sign in to comment.
Something went wrong with that request. Please try again.