- Fixed calculation for defining the middle of slide to decide whether slide menu should go left or right when touch is released

This commit is contained in:
Aryan Ghassemi 2014-01-06 08:03:50 -08:00
parent fc827a9fd8
commit 6401379cd6
1 changed files with 1 additions and 1 deletions

View File

@ -490,7 +490,7 @@ static SlideNavigationController *singletonInstance;
}
else
{
if (currentXOffset < self.view.frame.size.width/2)
if (currentXOffset < (self.horizontalSize - self.slideOffset)/2)
[self closeMenuWithCompletion:nil];
else
[self openMenu:(currentX > 0) ? MenuLeft : MenuRight withCompletion:nil];