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

Commit 3beeb1c6 authored by Victoria Lease's avatar Victoria Lease
Browse files

finalise scrolling before checking scroll position

  Bug: 5470588

Change-Id: I09435875895452d0b015a641b471b113b84f9bf5
parent dbaf2cc1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4081,6 +4081,7 @@ public final class WebViewClassic implements WebViewProvider, WebViewProvider.Sc
    // helper to pin the scrollTo parameters (already in view coordinates)
    // returns true if the scroll was changed
    private boolean pinScrollTo(int x, int y, boolean animate, int animationDuration) {
        abortAnimation();
        x = pinLocX(x);
        y = pinLocY(y);
        int dx = x - getScrollX();
@@ -4089,7 +4090,6 @@ public final class WebViewClassic implements WebViewProvider, WebViewProvider.Sc
        if ((dx | dy) == 0) {
            return false;
        }
        abortAnimation();
        if (animate) {
            //        Log.d(LOGTAG, "startScroll: " + dx + " " + dy);
            mScroller.startScroll(getScrollX(), getScrollY(), dx, dy,