Skip to content

Commit

Permalink
[pagingscrollview] Reset surrounding pages explicitly when not animat…
Browse files Browse the repository at this point in the history
…ing.

Closes jverkoey#508.
  • Loading branch information
jverkoey committed Feb 14, 2014
1 parent 443342c commit dea20e5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pagingscrollview/src/NIPagingScrollView.m
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,7 @@ - (BOOL)moveToPageAtIndex:(NSInteger)pageIndex animated:(BOOL)animated updateVis
}
[_scrollView setContentOffset:offset animated:animated];
if (!animated) {
[self resetSurroundingPages];
[self didAnimateToPage:pageIndex];
}
return YES;
Expand Down

0 comments on commit dea20e5

Please sign in to comment.