From 835e8bedd1cf41674632977bf58803c6ff5e4d38 Mon Sep 17 00:00:00 2001 From: Aryan Ghassemi Date: Sun, 26 Jan 2014 15:47:01 -0800 Subject: [PATCH] - 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) --- SlideMenu/Source/SlideNavigationController.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SlideMenu/Source/SlideNavigationController.m b/SlideMenu/Source/SlideNavigationController.m index 7c45223..9149752 100644 --- a/SlideMenu/Source/SlideNavigationController.m +++ b/SlideMenu/Source/SlideNavigationController.m @@ -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]; }