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

Commit d7660ccb authored by Grace Kloba's avatar Grace Kloba
Browse files

Fix 2058938. As zoom control is uesd in overview mode to switch to reading

mode, we also want to hide it after double tap is done.
parent 20ea6ce0
Loading
Loading
Loading
Loading
+13 −12
Original line number Diff line number Diff line
@@ -4689,7 +4689,7 @@ public class WebView extends AbsoluteLayout
        mZoomCenterY = mLastTouchY;
        mInZoomOverview = !mInZoomOverview;
        mCallbackProxy.uiOnChangeViewingMode(mInZoomOverview);
        if (mInZoomOverview) {
        // remove the zoom control after double tap
        if (getSettings().getBuiltInZoomControls()) {
            if (mZoomButtonsController.isVisible()) {
                mZoomButtonsController.setVisible(false);
@@ -4702,6 +4702,7 @@ public class WebView extends AbsoluteLayout
                mZoomControls.hide();
            }
        }
        if (mInZoomOverview) {
            zoomWithPreview((float) getViewWidth() / mZoomOverviewWidth);
        } else {
            // mLastTouchX and mLastTouchY are the point in the current viewport