From 7f5b99676f2fda710c2182cae16f6b9094a1d98c Mon Sep 17 00:00:00 2001 From: Jeff Brown Date: Mon, 6 Jun 2011 18:59:41 -0700 Subject: Improve browser scrolling when using the mouse wheel. The way that smooth scrolling is implemented in the Browser, repeated requests to scroll by a certain amount do not add up to one large scroll by the cumulative amount. This makes the mouse wheel unusable on large pages because the Browser will scroll at a more or less constant rate no matter how often the wheel is turned. The fix is to not animate scrolls when using the mouse wheel. Change-Id: I23c05cdd2383944b8730deb225b7f3f57f1729df --- core/java/android/webkit/WebView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/java/android/webkit/WebView.java b/core/java/android/webkit/WebView.java index 0d34ff66fc5b..eeb5b7b01502 100644 --- a/core/java/android/webkit/WebView.java +++ b/core/java/android/webkit/WebView.java @@ -6215,7 +6215,7 @@ public class WebView extends AbsoluteLayout if (hscroll != 0 || vscroll != 0) { final int vdelta = (int) (vscroll * getVerticalScrollFactor()); final int hdelta = (int) (hscroll * getHorizontalScrollFactor()); - if (pinScrollBy(hdelta, vdelta, true, 0)) { + if (pinScrollBy(hdelta, vdelta, false, 0)) { return true; } } -- cgit v1.2.3-59-g8ed1b