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

Commit 2c960713 authored by Grace Kloba's avatar Grace Kloba Committed by Android (Google) Code Review
Browse files

Merge "There are two computeHorizontalScrollRange() got missed in the last conversion."

parents 12331739 1cd1c8e8
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;