Skip to content

Commit c2cb8d2

Browse files
jreckAndroid (Google) Code Review
authored andcommitted
Merge "Support scrolling layers with the mousewheel" into jb-mr1-dev
2 parents a5d5d60 + f2e6115 commit c2cb8d2

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

core/java/android/webkit/WebViewClassic.java

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6448,9 +6448,13 @@ public boolean onGenericMotionEvent(MotionEvent event) {
64486448
mWebViewPrivate.getVerticalScrollFactor());
64496449
final int hdelta = (int) (hscroll *
64506450
mWebViewPrivate.getHorizontalScrollFactor());
6451-
if (pinScrollBy(hdelta, vdelta, false, 0)) {
6452-
return true;
6453-
}
6451+
6452+
abortAnimation();
6453+
int oldTouchMode = mTouchMode;
6454+
startScrollingLayer(event.getX(), event.getY());
6455+
doDrag(hdelta, vdelta);
6456+
mTouchMode = oldTouchMode;
6457+
return true;
64546458
}
64556459
}
64566460
}

0 commit comments

Comments
 (0)