- 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:
parent
fc827a9fd8
commit
6401379cd6
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Reference in New Issue