File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -275,7 +275,7 @@ - (void)goTo:(NSInteger)index animated:(BOOL)animated {
275275 if (i == _currentIndex) {
276276 continue ;
277277 }
278- [self goToViewController: i direction: direction animated: (!self .animating && i == index) shouldCallOnPageSelected: i == index];
278+ [self goToViewController: i direction: direction animated: (!self .animating && i == index && animated ) shouldCallOnPageSelected: i == index];
279279 }
280280 }
281281
@@ -285,7 +285,7 @@ - (void)goTo:(NSInteger)index animated:(BOOL)animated {
285285 if (i == _currentIndex || i >= numberOfPages) {
286286 continue ;
287287 }
288- [self goToViewController: i direction: direction animated: (!self .animating && i == index) shouldCallOnPageSelected: i == index];
288+ [self goToViewController: i direction: direction animated: (!self .animating && i == index && animated ) shouldCallOnPageSelected: i == index];
289289 }
290290 }
291291
You can’t perform that action at this time.
0 commit comments