diff --git a/core/java/android/webkit/WebView.java b/core/java/android/webkit/WebView.java index 4f2a67bfb1538..06a7a6f4c127c 100644 --- a/core/java/android/webkit/WebView.java +++ b/core/java/android/webkit/WebView.java @@ -2150,11 +2150,15 @@ public class WebView extends AbsoluteLayout mScrollX = pinLocX(Math.round(sx)); mScrollY = pinLocY(Math.round(sy)); + // update webkit if (oldX != mScrollX || oldY != mScrollY) { onScrollChanged(mScrollX, mScrollY, oldX, oldY); + } else { + // the scroll position is adjusted at the beginning of the + // zoom animation. But we want to update the WebKit at the + // end of the zoom animation. See comments in onScaleEnd(). + sendOurVisibleRect(); } - - // update webkit sendViewSizeZoom(); } }