Skip to content

Commit e4dbe88

Browse files
ChrisCraikAndroid (Google) Code Review
authored andcommitted
Merge "Notify native that scrolling has stopped correctly"
2 parents 351f44a + e2f3aee commit e4dbe88

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

core/java/android/webkit/WebView.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6546,6 +6546,13 @@ private void doDrag(int deltaX, int deltaY) {
65466546
}
65476547

65486548
private void stopTouch() {
6549+
if (mScroller.isFinished() && !mSelectingText
6550+
&& (mTouchMode == TOUCH_DRAG_MODE || mTouchMode == TOUCH_DRAG_LAYER_MODE)) {
6551+
WebViewCore.resumePriority();
6552+
WebViewCore.resumeUpdatePicture(mWebViewCore);
6553+
nativeSetIsScrolling(false);
6554+
}
6555+
65496556
// we also use mVelocityTracker == null to tell us that we are
65506557
// not "moving around", so we can take the slower/prettier
65516558
// mode in the drawing code

0 commit comments

Comments
 (0)