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.
2 parents b09cbc7 + 6d0b721 commit 24f689bCopy full SHA for 24f689b
omegarecyclerview/src/main/java/com/omega_r/libs/omegarecyclerview/viewpager/ViewPagerLayoutManager.java
@@ -445,6 +445,9 @@ private int calculateScrollPosition(int position) {
445
int itemCount = super.getItemCount();
446
if (mIsInfinite && itemCount != 0) {
447
int currentWindowPosition = mCurrentPosition / itemCount;
448
+ if (mCurrentPosition > position + (currentWindowPosition * itemCount)) {
449
+ currentWindowPosition++;
450
+ }
451
return currentWindowPosition * itemCount + position;
452
}
453
return position;
0 commit comments