- Fixed a bug where menu animation does not get completed when switching to another view controller because that viewController is not presenting the menu (delegate return NO or not implemented)
This commit is contained in:
parent
f1025d7792
commit
835e8bedd1
|
|
@ -370,8 +370,8 @@ static SlideNavigationController *singletonInstance;
|
|||
- (void)updateMenuAnimation:(Menu)menu
|
||||
{
|
||||
CGFloat progress = (menu == MenuLeft)
|
||||
? (self.horizontalLocation / self.maxXForDragging)
|
||||
: (self.horizontalLocation / self.minXForDragging);
|
||||
? (self.horizontalLocation / (self.horizontalSize - self.slideOffset))
|
||||
: (self.horizontalLocation / ((self.horizontalSize - self.slideOffset) * -1));
|
||||
|
||||
[self.menuRevealAnimator animateMenu:menu withProgress:progress];
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue