Index: ui/base/gestures/gesture_point.cc |
diff --git a/ui/base/gestures/gesture_point.cc b/ui/base/gestures/gesture_point.cc |
index bbf4d7b1879c09369428b5ea84c488c9ac52f4c9..89ec955d01606a1c0d9792438f6112164e9829dd 100644 |
--- a/ui/base/gestures/gesture_point.cc |
+++ b/ui/base/gestures/gesture_point.cc |
@@ -155,8 +155,10 @@ bool GesturePoint::IsInsideManhattanSquare(const TouchEvent& event) const { |
bool GesturePoint::IsSecondClickInsideManhattanSquare( |
const TouchEvent& event) const { |
- return ui::gestures::IsInsideManhattanSquare(event.location(), |
- last_tap_position_); |
+ int manhattan_distance = abs(event.location().x() - last_tap_position_.x()) + |
+ abs(event.location().y() - last_tap_position_.y()); |
+ return manhattan_distance < |
+ GestureConfiguration::max_distance_between_taps_for_double_tap(); |
} |
bool GesturePoint::IsOverMinFlickSpeed() { |