diff options
-rw-r--r-- | core/java/android/webkit/WebView.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/core/java/android/webkit/WebView.java b/core/java/android/webkit/WebView.java index 023f61f..5b4ec60 100644 --- a/core/java/android/webkit/WebView.java +++ b/core/java/android/webkit/WebView.java @@ -4792,6 +4792,7 @@ public class WebView extends AbsoluteLayout } } settings.setDoubleTapToastCount(0); + boolean zoomToDefault = false; if ((settings.getLayoutAlgorithm() == WebSettings.LayoutAlgorithm.NARROW_COLUMNS) && (Math.abs(mActualScale - mTextWrapScale) >= 0.01f)) { setNewZoomScale(mActualScale, true, true); @@ -4807,9 +4808,12 @@ public class WebView extends AbsoluteLayout if (mScrollY < getTitleHeight()) mScrollY = 0; zoomWithPreview(newScale); } else if (Math.abs(mActualScale - mDefaultScale) >= 0.01f) { - mInZoomOverview = true; + zoomToDefault = true; } } else { + zoomToDefault = true; + } + if (zoomToDefault) { mInZoomOverview = false; int left = nativeGetBlockLeftEdge(mAnchorX, mAnchorY, mActualScale); if (left != NO_LEFTEDGE) { |