Skip to content

Commit 835e8be

Browse files
committed
- 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)
1 parent f1025d7 commit 835e8be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SlideMenu/Source/SlideNavigationController.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,8 +370,8 @@ - (void)moveHorizontallyToLocation:(CGFloat)location
370370
- (void)updateMenuAnimation:(Menu)menu
371371
{
372372
CGFloat progress = (menu == MenuLeft)
373-
? (self.horizontalLocation / self.maxXForDragging)
374-
: (self.horizontalLocation / self.minXForDragging);
373+
? (self.horizontalLocation / (self.horizontalSize - self.slideOffset))
374+
: (self.horizontalLocation / ((self.horizontalSize - self.slideOffset) * -1));
375375

376376
[self.menuRevealAnimator animateMenu:menu withProgress:progress];
377377
}

0 commit comments

Comments
 (0)