Add flag to reduce horizontal fling velocity.
When flinging in mandatory snap point scrollers (often used for
horizontal carousels) the velocity feels far too fast. This flag will
let us experiment with a reduced velocity by reducing all horizontal
fling velocities.
Bug: 1189696
Change-Id: I4419d8b549ab1486e5f50130ff496cab00757591
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2774022
Commit-Queue: Robert Flack <[email protected]>
Reviewed-by: Sadrul Chowdhury <[email protected]>
Cr-Commit-Position: refs/heads/master@{#865154}
diff --git a/chrome/browser/flag_descriptions.cc b/chrome/browser/flag_descriptions.cc
index 5f2808e..35f4f80 100644
--- a/chrome/browser/flag_descriptions.cc
+++ b/chrome/browser/flag_descriptions.cc
@@ -1012,6 +1012,12 @@
"with the pixel and improves text rendering. This should be enabled when a "
"device is using fractional scale factor.";
+const char kReduceHorizontalFlingVelocityName[] =
+ "Reduce horizontal fling velocity";
+const char kReduceHorizontalFlingVelocityDescription[] =
+ "Reduces the velocity of horizontal flings to 20\% of their original"
+ "velocity.";
+
const char kEnableResamplingInputEventsName[] =
"Enable resampling input events";
const char kEnableResamplingInputEventsDescription[] =