mirror of
https://github.com/zhigang1992/ECSlidingViewController.git
synced 2026-03-27 22:49:37 +08:00
Use more reliable BOOLs to see if topViewHasFocus
This commit is contained in:
@@ -503,7 +503,7 @@ NSString *const ECSlidingViewTopDidReset = @"ECSlidingViewTopDidReset";
|
||||
|
||||
- (BOOL)topViewHasFocus
|
||||
{
|
||||
return self.topView.center.x == self.resettedCenter;
|
||||
return !_underLeftShowing && !_underRightShowing && !_topViewIsOffScreen;
|
||||
}
|
||||
|
||||
- (void)updateUnderLeftLayout
|
||||
|
||||
Reference in New Issue
Block a user