From 2e46fbb8eace71b987535b5130c7bc52ad973134 Mon Sep 17 00:00:00 2001 From: Victor Gabana Date: Fri, 12 Feb 2016 16:59:34 +0000 Subject: [PATCH] Moved the logic to enable the user interaction of the views outside the condition in the method scrollViewDidEndScrollingAnimation: This way we make sure the interface never gets disabled forever if the user interacts with the interface like crazy tapping every button fast. --- .../Controllers/XLPagerTabStripViewController.m | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/XLPagerTabStrip/XL/Controllers/XLPagerTabStripViewController.m b/XLPagerTabStrip/XL/Controllers/XLPagerTabStripViewController.m index afac934..a85ccc9 100644 --- a/XLPagerTabStrip/XL/Controllers/XLPagerTabStripViewController.m +++ b/XLPagerTabStrip/XL/Controllers/XLPagerTabStripViewController.m @@ -441,18 +441,18 @@ { if (self.containerView == scrollView && _pagerTabStripChildViewControllersForScrolling){ _pagerTabStripChildViewControllersForScrolling = nil; - if (self.navigationController){ - self.navigationController.view.userInteractionEnabled = YES; - } - else{ - self.view.userInteractionEnabled = YES; - } + [self updateContent]; } + + if (self.navigationController){ + self.navigationController.view.userInteractionEnabled = YES; + } + else{ + self.view.userInteractionEnabled = YES; + } } - - #pragma mark - Orientation - (void)viewWillTransitionToSize:(CGSize)size withTransitionCoordinator:(id)coordinator