Use more reliable BOOLs to see if topViewHasFocus

This commit is contained in:
Mike Enriquez
2012-03-23 11:24:03 -04:00
parent ea5e2ebbee
commit c446607bda

View File

@@ -503,7 +503,7 @@ NSString *const ECSlidingViewTopDidReset = @"ECSlidingViewTopDidReset";
- (BOOL)topViewHasFocus
{
return self.topView.center.x == self.resettedCenter;
return !_underLeftShowing && !_underRightShowing && !_topViewIsOffScreen;
}
- (void)updateUnderLeftLayout