diff options
author | jdduke@chromium.org <jdduke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-06-12 06:33:01 +0000 |
---|---|---|
committer | jdduke@chromium.org <jdduke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-06-12 06:33:01 +0000 |
commit | c99767e0f14ae4470d9c7af928796d737ecc7314 (patch) | |
tree | edaf0c2f129747e5317fa931eb5378167cba6794 /content/browser/renderer_host | |
parent | a8360f2a1aea0f46e40576d15c6a0e4f87e7748c (diff) | |
download | chromium_src-c99767e0f14ae4470d9c7af928796d737ecc7314.zip chromium_src-c99767e0f14ae4470d9c7af928796d737ecc7314.tar.gz chromium_src-c99767e0f14ae4470d9c7af928796d737ecc7314.tar.bz2 |
Support minimum gesture bounds in GestureProvider
Some touch devices report either zero or unreasonably small touch sizes. While
this doesn't present a problem for gesture detection, it does affect the
behavior of the touch-derived gestures. For example, tap disambiguation is
prevented if the tap gesture's size is sufficiently small. As a workaround,
provide a platform-specific minimum gesture bounds length in GestureProvider.
On Android, this value is the same as was used before the unified gesture
detector, and on Aura we simply use half the default touch size.
BUG=379876
Review URL: https://codereview.chromium.org/321563002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@276550 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/renderer_host')
-rw-r--r-- | content/browser/renderer_host/input/web_input_event_util.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/content/browser/renderer_host/input/web_input_event_util.cc b/content/browser/renderer_host/input/web_input_event_util.cc index 0ddfc01..de84117 100644 --- a/content/browser/renderer_host/input/web_input_event_util.cc +++ b/content/browser/renderer_host/input/web_input_event_util.cc @@ -241,7 +241,7 @@ WebGestureEvent CreateWebGestureEventFromGestureEventData( gesture.timeStampSeconds = (data.time - base::TimeTicks()).InSecondsF(); gesture.sourceDevice = blink::WebGestureDeviceTouchscreen; - switch (data.type) { + switch (data.type()) { case ui::ET_GESTURE_SHOW_PRESS: gesture.type = WebInputEvent::GestureShowPress; gesture.data.showPress.width = data.details.bounding_box_f().width(); |