Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cae49803 authored by fbaron's avatar fbaron
Browse files

Page resets when scrolling slowly fix

Fix: 324071635
Flag: NONE
Test: Verified manually on RTL and non-RTL
Change-Id: Id778a0a01505d30bca4f216322f3ef3b951e63a7
parent cb5d2ab7
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -826,7 +826,9 @@ public abstract class PagedView<T extends View & PageIndicator> extends ViewGrou
                // or right edge for RTL.
                final int pageScroll =
                        mIsRtl ? childPrimaryEnd - scrollOffsetEnd : childStart - scrollOffsetStart;
                if (outPageScrolls[i] != pageScroll) {
                // If there's more than one panel, only update scroll on leftmost panel.
                if (outPageScrolls[i] != pageScroll
                        && (panelCount <= 1 || i == getLeftmostVisiblePageForIndex(i))) {
                    pageScrollChanged = true;
                    outPageScrolls[i] = pageScroll;
                }