Skip to content

Commit

Permalink
Merge pull request #32 from xhzengAIB/master
Browse files Browse the repository at this point in the history
fix the tap gesture recognizer nor work.
  • Loading branch information
gblancogarcia committed Sep 28, 2014
2 parents cb8ea66 + 289181a commit 4ebeb66
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions GBInfiniteScrollView/GBInfiniteScrollView/GBInfiniteScrollView.m
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,13 @@ - (void)setUp
pan.delegate = self;
[self addGestureRecognizer:pan];

[self setupTapGesture];

[self setUpDefautValues];
}

- (void)setupTapGesture
{
if ([self isTapEnabled]) {
self.exclusiveTouch = YES;

Expand All @@ -170,8 +177,6 @@ - (void)setUp
} else {
self.exclusiveTouch = NO;
}

[self setUpDefautValues];
}

- (void)setUpDefautValues
Expand Down Expand Up @@ -218,6 +223,14 @@ - (void)setUpTimer
}
}

#pragma mark - Propertys

// Setter Method
- (void)setTapEnabled:(BOOL)tapEnabled {
_tapEnabled = tapEnabled;
[self setupTapGesture];
}

#pragma mark - Tap

- (void)tapOnScrollView
Expand Down

0 comments on commit 4ebeb66

Please sign in to comment.