am 763e62a8
: Fix a case introduced by https://android-git.corp.google.com/g/#change,47640
Merge commit '763e62a831f6cf4e113bff868dab4d48560a3693' into froyo-plus-aosp * commit '763e62a831f6cf4e113bff868dab4d48560a3693': Fix a case introduced by https://android-git.corp.google.com/g/#change,47640
This commit is contained in:
@ -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();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user