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

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: format edited. 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
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 7dfbe2912ecc587df6f6949babb5096d4911ac07..e1ba7639d0280e749c555364e8435c2338816410 100644
--- a/ui/events/blink/blink_event_util.cc
+++ b/ui/events/blink/blink_event_util.cc
@@ -263,7 +263,8 @@ bool CanCoalesce(const WebMouseWheelEvent& event_to_coalesce,
event.momentum_phase == event_to_coalesce.momentum_phase &&
event.resending_plugin_id == event_to_coalesce.resending_plugin_id &&
event.has_precise_scrolling_deltas ==
- event_to_coalesce.has_precise_scrolling_deltas;
+ event_to_coalesce.has_precise_scrolling_deltas &&
+ event.dispatch_type == event_to_coalesce.dispatch_type;
dtapuska 2017/06/16 17:36:09 This seems wrong. For touch we allow a cancellabl
sahel 2017/06/20 19:22:33 Done.
}
void Coalesce(const WebMouseWheelEvent& event_to_coalesce,

Powered by Google App Engine
This is Rietveld 408576698