If the WebView can't be scaled, don't check for

double tap. This will make the click event on the
non-scalable page much responsive.

Fix http://b/issue?id=2645880
This commit is contained in:
Grace Kloba
2010-06-01 19:00:23 -07:00
parent 6660740cfa
commit ec9a104ce9

View File

@@ -5001,7 +5001,10 @@ public class WebView extends AbsoluteLayout
break;
}
} else {
if (mTouchMode == TOUCH_INIT_MODE) {
// only trigger double tap if the WebView is
// scalable
if (mTouchMode == TOUCH_INIT_MODE
&& (canZoomIn() || canZoomOut())) {
mPrivateHandler.sendEmptyMessageDelayed(
RELEASE_SINGLE_TAP, ViewConfiguration
.getDoubleTapTimeout());