Skip to content

Commit 6d0b721

Browse files
committed
new change for counting
1 parent dc21e52 commit 6d0b721

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

omegarecyclerview/src/main/java/com/omega_r/libs/omegarecyclerview/viewpager/ViewPagerLayoutManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ private int calculateScrollPosition(int position) {
445445
int itemCount = super.getItemCount();
446446
if (mIsInfinite && itemCount != 0) {
447447
int currentWindowPosition = mCurrentPosition / itemCount;
448-
if (currentWindowPosition > position + (currentWindowPosition * itemCount)) {
448+
if (mCurrentPosition > position + (currentWindowPosition * itemCount)) {
449449
currentWindowPosition++;
450450
}
451451
return currentWindowPosition * itemCount + position;

0 commit comments

Comments
 (0)