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

Unified Diff: ui/events/gesture_detection/gesture_config_helper_android.cc

Issue 409563004: Fix gesture debugging (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Actually add the changes... Created 6 years, 5 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
Index: ui/events/gesture_detection/gesture_config_helper_android.cc
diff --git a/ui/events/gesture_detection/gesture_config_helper_android.cc b/ui/events/gesture_detection/gesture_config_helper_android.cc
index fbaba5771ea2529b6528f82f5421870c1414fea3..5b85d6a818d3ad2fadb5db033199f2289f66f0f9 100644
--- a/ui/events/gesture_detection/gesture_config_helper_android.cc
+++ b/ui/events/gesture_detection/gesture_config_helper_android.cc
@@ -55,17 +55,8 @@ ScaleGestureDetector::Config DefaultScaleGestureDetectorConfig(
const float px_to_dp = 1.f / display.device_scale_factor();
config.min_scaling_touch_major =
ViewConfiguration::GetMinScalingTouchMajorInPixels() * px_to_dp;
- config.use_touch_major_in_span =
- ViewConfiguration::ShouldUseTouchMajorInScalingSpan();
config.min_scaling_span =
ViewConfiguration::GetMinScalingSpanInPixels() * px_to_dp;
- // As the |min_scaling_span| platform constant assumes that touch major values
- // are used when computing the span, subtract off a reasonable touch major
- // value for the case where the touch major values are not used.
- if (!config.use_touch_major_in_span) {
- config.min_scaling_span = std::max(
- 0.f, config.min_scaling_span - 2.f * config.min_scaling_touch_major);
- }
return config;
}

Powered by Google App Engine
This is Rietveld 408576698