Skip to content

Commit

Permalink
Allow the underlying scroll view pan gestures to work as expected on …
Browse files Browse the repository at this point in the history
…iOS 9 and higher

Fixes lxcid#92.
  • Loading branch information
tonyarnold committed Aug 7, 2015
1 parent 58b772e commit e26d60c
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,14 @@ - (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecogni
if ([self.panGestureRecognizer isEqual:gestureRecognizer]) {
return [self.longPressGestureRecognizer isEqual:otherGestureRecognizer];
}



// Allow the underlying scroll view pan gestures to work as expected on iOS 9 and higher
if ([otherGestureRecognizer isKindOfClass:NSClassFromString(@"UIScrollViewPanGestureRecognizer")] &&
[self.collectionView.gestureRecognizers containsObject:otherGestureRecognizer]) {
return YES;
}

return NO;
}

Expand Down

0 comments on commit e26d60c

Please sign in to comment.