pkluz / PKRevealController

PKRevealController is a delightful view controller container for iOS, enabling you to present multiple controllers on top of one another.
Other
3.85k stars 659 forks source link

"Lazy panning" #92

Open adammj opened 11 years ago

adammj commented 11 years ago

Can you also add the ability to have the panGesture only enabled when the left or right is being revealed similar to how you add the tapGesture after the transition has started, and with tested conditionals for both? I don't like having the panGesture enabled when only the frontView is showing, as I want the reveal button to be pressed first. However, I do like having the ability to swipe the frontView back into place. (I've already made the changes, but I'd like to make future diffs with your codebase easier)

axilaris commented 11 years ago

hi, im interested in your code change, could you share it. thanks

adammj commented 11 years ago

I just performed a diff with the current code, and the only difference right now is the addition of [weakSelf removePanGestureRecognizerFromFrontView]; to - (void)showFrontViewControllerAnimated:(BOOL)animated