From 29f382016cedb739e63ad0f1410da11ac0aa826a Mon Sep 17 00:00:00 2001 From: mikeEllis Date: Thu, 13 Aug 2015 16:36:59 -0300 Subject: [PATCH] Fixing issue 46 --- README.md | 1 + .../XL/Controllers/XLButtonBarPagerTabStripViewController.m | 1 + 2 files changed, 2 insertions(+) diff --git a/README.md b/README.md index 8e1bde3..03686c4 100644 --- a/README.md +++ b/README.md @@ -91,6 +91,7 @@ Version 2.0.0 (master) * `changeCurrentIndexProgressiveBlock` added to `XLButtonBarPagerTabStripViewController`. * `changeCurrentIndexBlock` added to `XLButtonBarPagerTabStripViewController`. * indxWasChanged parameter was added to `-(void)pagerTabStripViewController:(XLPagerTabStripViewController *)pagerTabStripViewController updateIndicatorFromIndex:(NSInteger)fromIndex toIndex:(NSInteger)toIndex withProgressPercentage:(CGFloat)progressPercentage indexWasChanged:(BOOL)indexWasChanged;` +* Bug fix Issue #45: When the current tab is tapped by the user, swiping between tabs is now working as expected. Version 1.1.1 diff --git a/XLPagerTabStrip/XL/Controllers/XLButtonBarPagerTabStripViewController.m b/XLPagerTabStrip/XL/Controllers/XLButtonBarPagerTabStripViewController.m index 8063d6b..af81217 100644 --- a/XLPagerTabStrip/XL/Controllers/XLButtonBarPagerTabStripViewController.m +++ b/XLPagerTabStrip/XL/Controllers/XLButtonBarPagerTabStripViewController.m @@ -168,6 +168,7 @@ - (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath { + //There's nothing to do if we select the current selected tab if (indexPath.item == self.currentIndex) return;