MMDrawerController icon indicating copy to clipboard operation
MMDrawerController copied to clipboard

Conflict: UIScrollView in RightViewController

Open lipeiran opened this issue 10 years ago • 1 comments

my RightViewController is FullScreen,and has a horizontal Scrollview,the scrollview has four pages. When in first page, swipe to right, I hope to open the CenterViewController, how to deal with the conflict pan gesture,i find a method:

"- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRequireFailureOfGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer",

but in this method implement,

" if (gestureRecognizer != self.panGesture || self.openSide != MMDrawerSideRight) { return NO; } CGPoint velocity = [self.panGesture velocityInView:self.panGesture.view];"

velocity have data in pan callback ,but in this failure method,its always 0,how can i judge the pan direction?

lipeiran avatar Jul 31 '15 03:07 lipeiran

shouldRequireFailureOfGestureRecognizer trigger only at the very first time, maybe try to catch the actually moving/panning gesture (UIGestureRecognizerStateChanged)

gran33 avatar Apr 10 '16 06:04 gran33