Merge "Support scrolling layers with the mousewheel" into jb-mr1-dev

This commit is contained in:
John Reck
2012-08-20 17:33:19 -07:00
committed by Android (Google) Code Review

View File

@@ -6448,9 +6448,13 @@ public final class WebViewClassic implements WebViewProvider, WebViewProvider.Sc
mWebViewPrivate.getVerticalScrollFactor());
final int hdelta = (int) (hscroll *
mWebViewPrivate.getHorizontalScrollFactor());
if (pinScrollBy(hdelta, vdelta, false, 0)) {
return true;
}
abortAnimation();
int oldTouchMode = mTouchMode;
startScrollingLayer(event.getX(), event.getY());
doDrag(hdelta, vdelta);
mTouchMode = oldTouchMode;
return true;
}
}
}