summaryrefslogtreecommitdiffstats
path: root/ui/events/gesture_detection
diff options
context:
space:
mode:
authorjdduke <jdduke@chromium.org>2015-10-23 11:46:56 -0700
committerCommit bot <commit-bot@chromium.org>2015-10-23 18:49:08 +0000
commit0639980817fd92e1d02051cb46c99b53db5c696e (patch)
tree80ebdc0454fb1fe8b704e2a4c8463d0a498db45d /ui/events/gesture_detection
parented31140dee44c06e6398e92e1afb9c047c9137e6 (diff)
downloadchromium_src-0639980817fd92e1d02051cb46c99b53db5c696e.zip
chromium_src-0639980817fd92e1d02051cb46c99b53db5c696e.tar.gz
chromium_src-0639980817fd92e1d02051cb46c99b53db5c696e.tar.bz2
[Android] Allow multi-tap selection in editable regions
Increase the touch tap count detection threshold to 3, but restrict multi-click selection for associated fake mouse events to editable regions. This allows multi-tap selection in editable regions, partially matching Android platform behavior, while (hopefully) minimizing confusion when double-tapping elsewhere. BUG=522268 Review URL: https://codereview.chromium.org/1410903002 Cr-Commit-Position: refs/heads/master@{#355844}
Diffstat (limited to 'ui/events/gesture_detection')
-rw-r--r--ui/events/gesture_detection/gesture_configuration_android.cc3
1 files changed, 0 insertions, 3 deletions
diff --git a/ui/events/gesture_detection/gesture_configuration_android.cc b/ui/events/gesture_detection/gesture_configuration_android.cc
index 73c0cf2..428cb30 100644
--- a/ui/events/gesture_detection/gesture_configuration_android.cc
+++ b/ui/events/gesture_detection/gesture_configuration_android.cc
@@ -41,9 +41,6 @@ class GestureConfigurationAndroid : public GestureConfiguration {
set_long_press_time_in_ms(ViewConfiguration::GetLongPressTimeoutInMs());
set_max_distance_between_taps_for_double_tap(
ViewConfiguration::GetDoubleTapSlopInDips());
- // TODO(jdduke): Set this to 2 after double-click triggers selection only in
- // editable elements, see crbug.com/522268.
- set_max_tap_count(1);
set_max_fling_velocity(
ViewConfiguration::GetMaximumFlingVelocityInDipsPerSecond());
set_max_gesture_bounds_length(kMaxGestureBoundsLengthDips);