From 6401379cd60476801e1041e9b6b9dce85d230ce0 Mon Sep 17 00:00:00 2001 From: Aryan Ghassemi Date: Mon, 6 Jan 2014 08:03:50 -0800 Subject: [PATCH] - Fixed calculation for defining the middle of slide to decide whether slide menu should go left or right when touch is released --- SlideMenu/Source/SlideNavigationController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SlideMenu/Source/SlideNavigationController.m b/SlideMenu/Source/SlideNavigationController.m index 7f7241a..3321f7a 100644 --- a/SlideMenu/Source/SlideNavigationController.m +++ b/SlideMenu/Source/SlideNavigationController.m @@ -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];