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

Commit 1cd1c8e8 authored by Grace Kloba's avatar Grace Kloba
Browse files

There are two computeHorizontalScrollRange() got

missed in the last conversion.

Fix http://b/issue?id=2542555
parent 478a745e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1898,7 +1898,7 @@ public class WebView extends AbsoluteLayout
    // Expects x in view coordinates
    private int pinLocX(int x) {
        if (mInOverScrollMode) return x;
        return pinLoc(x, getViewWidth(), computeHorizontalScrollRange());
        return pinLoc(x, getViewWidth(), computeRealHorizontalScrollRange());
    }

    // Expects y in view coordinates
@@ -4318,7 +4318,7 @@ public class WebView extends AbsoluteLayout
                      " up/down= " + mMinDY + " " + mMaxDY);
            }

            int docRight = computeHorizontalScrollRange();
            int docRight = computeRealHorizontalScrollRange();
            int viewLeft = getScrollX();
            int viewRight = viewLeft + getWidth();
            mStartX = x;