- 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:
Aryan Ghassemi 2014-01-26 15:47:01 -08:00
parent f1025d7792
commit 835e8bedd1
1 changed files with 2 additions and 2 deletions

View File

@ -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];
}