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

Commit 72b4f933 authored by Shimeng (Simon) Wang's avatar Shimeng (Simon) Wang Committed by Android (Google) Code Review
Browse files

Merge "Fix zoom overview logic."

parents 704aba52 d5c6a16b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -768,8 +768,8 @@ class ZoomManager {
            mMinZoomScale = zoomOverviewScale;
        }
        // fit the content width to the current view. Ignore the rounding error case.
        if (!mWebView.drawHistory() && (mInZoomOverview || mInitialZoomOverview)
                && Math.abs((viewWidth * mInvActualScale) - mZoomOverviewWidth) > 1) {
        if (!mWebView.drawHistory() && (mInitialZoomOverview || (mInZoomOverview
                && Math.abs((viewWidth * mInvActualScale) - mZoomOverviewWidth) > 1))) {
            mInitialZoomOverview = false;
            setZoomScale(zoomOverviewScale, !willScaleTriggerZoom(mTextWrapScale));
        }