Skip to content

Commit 0fb6e8c

Browse files
committed
fixed issue when user tapped button and scrolled vastly and the bar stayed at the wrong button
1 parent c8bcc9a commit 0fb6e8c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/PagerTabStripViewController.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ public class PagerTabStripViewController: UIViewController, UIScrollViewDelegate
140140
containerView.setContentOffset(CGPointMake(pageOffsetForChildIndex(index: index), 0), animated: true)
141141
}
142142
else {
143+
(navigationController?.view ?? view).userInteractionEnabled = false
143144
containerView.setContentOffset(CGPointMake(pageOffsetForChildIndex(index: index), 0), animated: animated)
144145
}
145146
}

0 commit comments

Comments
 (0)