am d84e7d53: Allow scrolls to continue when getting a new content size.
Merge commit 'd84e7d53d379c9fdfe335f40e89e2dfd6144dfea' into eclair-plus-aosp * commit 'd84e7d53d379c9fdfe335f40e89e2dfd6144dfea': Allow scrolls to continue when getting a new content size.
This commit is contained in:
@@ -1917,12 +1917,15 @@ public class WebView extends AbsoluteLayout
|
||||
int oldY = mScrollY;
|
||||
mScrollX = pinLocX(mScrollX);
|
||||
mScrollY = pinLocY(mScrollY);
|
||||
// android.util.Log.d("skia", "recordNewContentSize -
|
||||
// abortAnimation");
|
||||
abortAnimation(); // just in case
|
||||
if (oldX != mScrollX || oldY != mScrollY) {
|
||||
sendOurVisibleRect();
|
||||
}
|
||||
if (!mScroller.isFinished()) {
|
||||
// We are in the middle of a scroll. Repin the final scroll
|
||||
// position.
|
||||
mScroller.setFinalX(pinLocX(mScroller.getFinalX()));
|
||||
mScroller.setFinalY(pinLocY(mScroller.getFinalY()));
|
||||
}
|
||||
}
|
||||
}
|
||||
contentSizeChanged(updateLayout);
|
||||
|
||||
Reference in New Issue
Block a user