Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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
steipete authored and gmoledina committed Dec 15, 2011
1 parent 080cda3 commit 5338da7
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions GMGridView/API/GMGridView.m
Expand Up @@ -26,7 +26,7 @@
// THE SOFTWARE. // THE SOFTWARE.
// //


#import <Quartzcore/QuartzCore.h> #import <QuartzCore/QuartzCore.h>
#import "GMGridView.h" #import "GMGridView.h"
#import "GMGridViewCell+Extended.h" #import "GMGridViewCell+Extended.h"
#import "GMGridViewLayoutStrategies.h" #import "GMGridViewLayoutStrategies.h"
Expand Down Expand Up @@ -174,7 +174,6 @@ - (id)initWithFrame:(CGRect)frame


///////////////////////////// /////////////////////////////
// Transformation gestures : // Transformation gestures :

_pinchGesture = [[UIPinchGestureRecognizer alloc] initWithTarget:self action:@selector(pinchGestureUpdated:)]; _pinchGesture = [[UIPinchGestureRecognizer alloc] initWithTarget:self action:@selector(pinchGestureUpdated:)];
_pinchGesture.delegate = self; _pinchGesture.delegate = self;
[self addGestureRecognizer:_pinchGesture]; [self addGestureRecognizer:_pinchGesture];
Expand Down Expand Up @@ -220,7 +219,7 @@ - (id)initWithFrame:(CGRect)frame
} }
[panGestureRecognizer setMaximumNumberOfTouches:1]; [panGestureRecognizer setMaximumNumberOfTouches:1];
[panGestureRecognizer requireGestureRecognizerToFail:_sortingPanGesture]; [panGestureRecognizer requireGestureRecognizerToFail:_sortingPanGesture];

self.layoutStrategy = [GMGridViewLayoutStrategyFactory strategyFromType:GMGridViewLayoutVertical]; self.layoutStrategy = [GMGridViewLayoutStrategyFactory strategyFromType:GMGridViewLayoutVertical];


self.mainSuperView = self; self.mainSuperView = self;
Expand Down Expand Up @@ -265,8 +264,6 @@ - (void)layoutSubviews
[self recomputeSize]; [self recomputeSize];
[self relayoutItemsAnimated:NO]; [self relayoutItemsAnimated:NO];
[self loadRequiredItems]; [self loadRequiredItems];

[_scrollView flashScrollIndicators];
} }




Expand Down

0 comments on commit 5338da7

Please sign in to comment.