Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Scope drawer drag workaround to feed pagers (#1694)

authored by

dan and committed by
GitHub
9042f503 abfd9a8c

+4 -4
+4 -4
patches/react-native-pager-view+6.1.4.patch
··· 1 1 diff --git a/node_modules/react-native-pager-view/ios/ReactNativePageView.m b/node_modules/react-native-pager-view/ios/ReactNativePageView.m 2 - index ab0fc7f..fbbf19f 100644 2 + index ab0fc7f..1ace752 100644 3 3 --- a/node_modules/react-native-pager-view/ios/ReactNativePageView.m 4 4 +++ b/node_modules/react-native-pager-view/ios/ReactNativePageView.m 5 5 @@ -1,6 +1,6 @@ ··· 19 19 20 20 @property(nonatomic, strong) UIPageViewController *reactPageViewController; 21 21 @property(nonatomic, strong) RCTEventDispatcher *eventDispatcher; 22 - @@ -80,6 +80,10 @@ 22 + @@ -80,6 +80,10 @@ - (void)didMoveToWindow { 23 23 [self setupInitialController]; 24 24 } 25 25 ··· 30 30 if (self.reactViewController.navigationController != nil && self.reactViewController.navigationController.interactivePopGestureRecognizer != nil) { 31 31 [self.scrollView.panGestureRecognizer requireGestureRecognizerToFail:self.reactViewController.navigationController.interactivePopGestureRecognizer]; 32 32 } 33 - @@ -463,4 +467,21 @@ 33 + @@ -463,4 +467,21 @@ - (NSString *)determineScrollDirection:(UIScrollView *)scrollView { 34 34 - (BOOL)isLtrLayout { 35 35 return [_layoutDirection isEqualToString:@"ltr"]; 36 36 } 37 37 + 38 38 +- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer { 39 - + if (otherGestureRecognizer == self.scrollView.panGestureRecognizer) { 39 + + if (!_overdrag && otherGestureRecognizer == self.scrollView.panGestureRecognizer) { 40 40 + UIPanGestureRecognizer* p = (UIPanGestureRecognizer*) gestureRecognizer; 41 41 + CGPoint velocity = [p velocityInView:self]; 42 42 + if (self.currentIndex == 0 && velocity.x > 0) {