Commit 00afc304 authored by Alex Sakhartchouk's avatar Alex Sakhartchouk Committed by Commit Bot

Continued tweaking of Cast fling values

BUG=none
TEST=flash device run through flings.

Change-Id: Icb6363c8418df76d868cdf1cefa4268e0eebc980
Reviewed-on: https://chromium-review.googlesource.com/1059696Reviewed-by: default avatarKevin Schoedel <kpschoedel@chromium.org>
Commit-Queue: Alex Sakhartchouk <alexst@chromium.org>
Cr-Commit-Position: refs/heads/master@{#558707}
parent 7604a9a4
...@@ -31,8 +31,7 @@ const float kEpsilon = 1e-5f; ...@@ -31,8 +31,7 @@ const float kEpsilon = 1e-5f;
const float kThresholdForFlingEnd = 0.1f; const float kThresholdForFlingEnd = 0.1f;
// Scale factor applied to incoming fling velocity. // Scale factor applied to incoming fling velocity.
const float kFlingVelocityAttenuationFactor = 0.5f; const float kFlingVelocityAttenuationFactor = 1.0f;
bool ApproxEquals(float a, float b) { bool ApproxEquals(float a, float b) {
return std::abs(a - b) < kEpsilon; return std::abs(a - b) < kEpsilon;
......
...@@ -32,7 +32,7 @@ class GestureConfigurationCast : public GestureConfiguration { ...@@ -32,7 +32,7 @@ class GestureConfigurationCast : public GestureConfiguration {
switches::kCompensateForUnstablePinchZoom) switches::kCompensateForUnstablePinchZoom)
? 5 ? 5
: 0); : 0);
set_velocity_tracker_strategy(VelocityTracker::Strategy::INT1); set_velocity_tracker_strategy(VelocityTracker::Strategy::LSQ2_RESTRICTED);
set_span_slop(max_touch_move_in_pixels_for_click() * 2); set_span_slop(max_touch_move_in_pixels_for_click() * 2);
set_swipe_enabled(true); set_swipe_enabled(true);
set_two_finger_tap_enabled(true); set_two_finger_tap_enabled(true);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment