We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 384d261 commit d6ccbadCopy full SHA for d6ccbad
ios/RNCPagerView.m
@@ -126,6 +126,10 @@ - (void)enableSwipe {
126
}
127
128
- (void)goTo:(NSInteger)index animated:(BOOL)animated {
129
+ if ([self getCurrentPage] == index) {
130
+ return;
131
+ }
132
+
133
CGPoint targetOffset = [self isHorizontal] ? CGPointMake(_scrollView.frame.size.width * index, 0) : CGPointMake(0, _scrollView.frame.size.height * index);
134
135
if (animated) {
0 commit comments