Skip to content

Commit

Permalink
Force tap gesture to fail when panning
Browse files Browse the repository at this point in the history
  • Loading branch information
lauraskelton committed Jun 8, 2015
1 parent c1d5a3f commit e516a45
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions jot/JotViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,14 @@ - (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecogni
return YES;
}

- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldBeRequiredToFailByGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer
{
if ([gestureRecognizer isKindOfClass:[UITapGestureRecognizer class]]) {
return YES;
}
return NO;
}

#pragma mark - JotTextEditView Delegate

- (void)jotTextEditViewFinishedEditingWithNewTextString:(NSString *)textString
Expand Down

0 comments on commit e516a45

Please sign in to comment.