File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -275,7 +275,7 @@ - (void)goTo:(NSInteger)index animated:(BOOL)animated {
275
275
if (i == _currentIndex) {
276
276
continue ;
277
277
}
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];
279
279
}
280
280
}
281
281
@@ -285,7 +285,7 @@ - (void)goTo:(NSInteger)index animated:(BOOL)animated {
285
285
if (i == _currentIndex || i >= numberOfPages) {
286
286
continue ;
287
287
}
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];
289
289
}
290
290
}
291
291
You can’t perform that action at this time.
0 commit comments