Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(281)

Unified Diff: ui/base/gestures/gesture_point.cc

Issue 10878085: Change default values of some gesture related constants (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/base/gestures/gesture_configuration.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() {
« no previous file with comments | « ui/base/gestures/gesture_configuration.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698