Skip to content

Commit aee272c

Browse files
nit: comment
1 parent 63ba5b8 commit aee272c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ios/RNCPagerScrollView.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ - (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecogni
1616
UIUserInterfaceLayoutDirection layoutDirection = [UIView userInterfaceLayoutDirectionForSemanticContentAttribute:self.semanticContentAttribute];
1717
BOOL isLTR = UIUserInterfaceLayoutDirectionLeftToRight == layoutDirection;
1818
BOOL isBackGesture = (isLTR && velocity.x > 0) || (!isLTR && velocity.x < 0);
19+
// if it's back gesture and scroll view is at the beginning of scroll we allow simultaneous gesture
1920
if (isBackGesture && self.contentOffset.x <= 0) {
2021
return YES;
2122
}

0 commit comments

Comments
 (0)