summaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorMajid Valipour <majidvp@chromium.org>2016-02-15 07:47:15 -0500
committerMajid Valipour <majidvp@chromium.org>2016-02-15 12:49:23 +0000
commitd5cddb032b0df9e243fa4df0d127b81795d929f9 (patch)
tree992f39170a64329814a5011c64486b3e900c4f27 /ui
parent2c8db490009ffadeda270abd6d0c8d3e9ce2f52d (diff)
downloadchromium_src-d5cddb032b0df9e243fa4df0d127b81795d929f9.zip
chromium_src-d5cddb032b0df9e243fa4df0d127b81795d929f9.tar.gz
chromium_src-d5cddb032b0df9e243fa4df0d127b81795d929f9.tar.bz2
Add timestamp to synthetic touchpad fling wheel events
BUG=578243 Review URL: https://codereview.chromium.org/1652873005 Cr-Commit-Position: refs/heads/master@{#373053} (cherry picked from commit 734550135a488e9613fb324ca7cc9f4a49c3c4ed) Review URL: https://codereview.chromium.org/1697063003 . Cr-Commit-Position: refs/branch-heads/2623@{#400} Cr-Branched-From: 92d77538a86529ca35f9220bd3cd512cbea1f086-refs/heads/master@{#369907}
Diffstat (limited to 'ui')
-rw-r--r--ui/events/blink/input_handler_proxy.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/events/blink/input_handler_proxy.cc b/ui/events/blink/input_handler_proxy.cc
index b0b7659..0c164d7 100644
--- a/ui/events/blink/input_handler_proxy.cc
+++ b/ui/events/blink/input_handler_proxy.cc
@@ -992,6 +992,7 @@ bool InputHandlerProxy::TouchpadFlingScroll(
const WebFloatSize& increment) {
WebMouseWheelEvent synthetic_wheel;
synthetic_wheel.type = WebInputEvent::MouseWheel;
+ synthetic_wheel.timeStampSeconds = InSecondsF(base::TimeTicks::Now());
synthetic_wheel.deltaX = increment.width;
synthetic_wheel.deltaY = increment.height;
synthetic_wheel.hasPreciseScrollingDeltas = true;