Disable double tap zoom on mobile sites, to remove 300ms click delay
commit2a82cd4eeda3e5bdfe2cfab495ddd98f71249b6e
authorjohnme@chromium.org <johnme@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 1 Nov 2013 00:35:17 +0000 (1 00:35 +0000)
committerjohnme@chromium.org <johnme@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 1 Nov 2013 00:35:17 +0000 (1 00:35 +0000)
tree4f9ab9e4e7f7cde822c47dfa5fa26ee8045fa808
parent99a9b7dc9f247bc695770cecd3811303b7c8333c
Disable double tap zoom on mobile sites, to remove 300ms click delay

This patch disables double tap zoom on pages that have a
width=device-width or narrower viewport (indicating that this is a
mobile-optimized or responsive website).

Double tap zoom continues to be disabled for pages that disallow the
user from zooming (even if they don't have a device-width or narrower
viewport).

This causes very noticeable performance benefits: links, buttons,
checkboxes, etc respond within around 10ms instead of 300ms.
Tested this on: http://jsbin.com/ixibol/6

Users shouldn't miss the double-tap gesture in the affected
situations, as double-tap means "zoom until tapped content is legible",
and in all the cases above the content was already legible (already
displayed at 1 or more DIPs per CSS pixel), so double tap zoom didn't
make sense and didn't do much.

BUG=169642
NOTRY=true

Review URL: https://codereview.chromium.org/18850005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232245 0039d316-1c4b-4281-b951-d872f2087c98
content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
content/public/android/java/src/org/chromium/content/browser/ContentViewGestureHandler.java
content/public/android/java/src/org/chromium/content/browser/RenderCoordinates.java
content/public/android/javatests/src/org/chromium/content/browser/ContentViewGestureHandlerTest.java