You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be good to have a feature that blocks the pan gesture on the X-axis when a user let's say pans on the Y-axis and the navbar hides. One pan gesture at a time.
The text was updated successfully, but these errors were encountered:
I had this problem and fixed it by using the panGesture recognizer of the scrollview, (instead of creating your own, like AMScrollingNavbar does right now)
The solution inside the followScrollView method in UIViewController+ScrollingNavbar.m looks like this:
UIScrollView* scrollView = (UIScrollView*)self.scrollableView;
if (![scrollView isKindOfClass:UIScrollView.class]) {
self.panGesture = [[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(handlePan:)];
[self.panGesture setMaximumNumberOfTouches:1];
[self.panGesture setDelegate:self];
[self.scrollableView addGestureRecognizer:self.panGesture];
} else {
// use existing pan gesture recognizer to avoid nested scrolling issues
[scrollView.panGestureRecognizer addTarget:self action:@selector(handlePan:)];
}
It would be good to have a feature that blocks the pan gesture on the X-axis when a user let's say pans on the Y-axis and the navbar hides. One pan gesture at a time.
The text was updated successfully, but these errors were encountered: