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

Unified Diff: ui/events/blink/blink_event_util.cc

Issue 2943133002: Async Wheel Event with only the first one cancellable behind a flag. (Closed)
Patch Set: 'k' removed from constant string Created 3 years, 6 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 | « content/public/common/content_features.cc ('k') | ui/events/blink/input_handler_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/blink/blink_event_util.cc
diff --git a/ui/events/blink/blink_event_util.cc b/ui/events/blink/blink_event_util.cc
index ad6e31ae73d756d5d2abc73adc170863ccc97100..2225d933b756fae0f7480fe860a7809dfc00a576 100644
--- a/ui/events/blink/blink_event_util.cc
+++ b/ui/events/blink/blink_event_util.cc
@@ -283,6 +283,7 @@ void Coalesce(const WebMouseWheelEvent& event_to_coalesce,
float old_wheelTicksY = event->wheel_ticks_y;
float old_movementX = event->movement_x;
float old_movementY = event->movement_y;
+ WebInputEvent::DispatchType old_dispatch_type = event->dispatch_type;
*event = event_to_coalesce;
event->delta_x += old_deltaX;
event->delta_y += old_deltaY;
@@ -294,6 +295,8 @@ void Coalesce(const WebMouseWheelEvent& event_to_coalesce,
GetAccelerationRatio(event->delta_x, unaccelerated_x);
event->acceleration_ratio_y =
GetAccelerationRatio(event->delta_y, unaccelerated_y);
+ event->dispatch_type =
+ MergeDispatchTypes(old_dispatch_type, event_to_coalesce.dispatch_type);
}
bool CanCoalesce(const WebTouchEvent& event_to_coalesce,
« no previous file with comments | « content/public/common/content_features.cc ('k') | ui/events/blink/input_handler_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698