Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ec9a104c authored by Grace Kloba's avatar Grace Kloba
Browse files

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
parent 6660740c
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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());