File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -264,7 +264,7 @@ - (void)goTo:(NSInteger)index animated:(BOOL)animated {
264264 if (i == _currentIndex) {
265265 continue ;
266266 }
267- [self goToViewController: i direction: direction animated: animated shouldCallOnPageSelected: i == index];
267+ [self goToViewController: i direction: direction animated: (! self .animating && i == index) shouldCallOnPageSelected: i == index];
268268 }
269269 }
270270
@@ -274,12 +274,12 @@ - (void)goTo:(NSInteger)index animated:(BOOL)animated {
274274 if (i == _currentIndex || i >= numberOfPages) {
275275 continue ;
276276 }
277- [self goToViewController: i direction: direction animated: animated shouldCallOnPageSelected: i == index];
277+ [self goToViewController: i direction: direction animated: (! self .animating && i == index) shouldCallOnPageSelected: i == index];
278278 }
279279 }
280280
281281 if (diff == 0 ) {
282- [self goToViewController: index direction: direction animated: animated shouldCallOnPageSelected: YES ];
282+ [self goToViewController: index direction: direction animated: NO shouldCallOnPageSelected: YES ];
283283 }
284284}
285285
You can’t perform that action at this time.
0 commit comments