File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -264,7 +264,7 @@ - (void)goTo:(NSInteger)index animated:(BOOL)animated {
264
264
if (i == _currentIndex) {
265
265
continue ;
266
266
}
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];
268
268
}
269
269
}
270
270
@@ -274,12 +274,12 @@ - (void)goTo:(NSInteger)index animated:(BOOL)animated {
274
274
if (i == _currentIndex || i >= numberOfPages) {
275
275
continue ;
276
276
}
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];
278
278
}
279
279
}
280
280
281
281
if (diff == 0 ) {
282
- [self goToViewController: index direction: direction animated: animated shouldCallOnPageSelected: YES ];
282
+ [self goToViewController: index direction: direction animated: NO shouldCallOnPageSelected: YES ];
283
283
}
284
284
}
285
285
You can’t perform that action at this time.
0 commit comments