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