Open amycheong19 opened 9 years ago
I've noticed this too. It's annoying, but I haven't written any apps with a left and right sidebar yet.
Any update on this? Or maybe a workaround?
You can use the delegate method to check the location: (you have to import <UIKit/UIGestureRecognizerSubclass.h>;)
- (void)revealController:(SWRevealViewController *)revealController panGestureMovedToLocation:(CGFloat)location progress:(CGFloat)progress
{
if ((revealController.frontViewPosition == FrontViewPositionRight && location <= 0) // Rear view is open
||(revealController.frontViewPosition == FrontViewPositionLeftSide && location >= 0)) // Right view is open
{
revealController.panGestureRecognizer.state = UIGestureRecognizerStateCancelled;
[revealController setFrontViewPosition:FrontViewPositionLeft];
}
}
When I'm opening my right sidebar, I pan gesture from left to the right(to close) the right sidebar but ended up open the left sidebar. It skips fast the front and goes to the left sidebar. Is there any way to stop this behavior? I know this bug has been around for a long time.