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

Commit d5c6a16b authored by Shimeng (Simon) Wang's avatar Shimeng (Simon) Wang
Browse files

Fix zoom overview logic.

issue: 2778976
Change-Id: Id859c473190d067e378cf149d9a7bf9e914ee6e7
parent 0a4a70da
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));
        }