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

Unified Diff: content/browser/frame_host/render_widget_host_view_child_frame.cc

Issue 2866523002: Don't drop mouse wheel events with phase ending information in RWHVCF. (Closed)
Patch Set: Add test. Created 3 years, 7 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 | « no previous file | content/browser/site_per_process_mac_browsertest.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/frame_host/render_widget_host_view_child_frame.cc
diff --git a/content/browser/frame_host/render_widget_host_view_child_frame.cc b/content/browser/frame_host/render_widget_host_view_child_frame.cc
index 5fdd44e11742e0167429eb174f7a3bc8ff66b740..713a16075508a0a925afef0b4ad68bbe428397a8 100644
--- a/content/browser/frame_host/render_widget_host_view_child_frame.cc
+++ b/content/browser/frame_host/render_widget_host_view_child_frame.cc
@@ -488,7 +488,11 @@ void RenderWidgetHostViewChildFrame::ProcessMouseEvent(
void RenderWidgetHostViewChildFrame::ProcessMouseWheelEvent(
const blink::WebMouseWheelEvent& event,
const ui::LatencyInfo& latency) {
- if (event.delta_x != 0 || event.delta_y != 0)
+ if (event.delta_x != 0 || event.delta_y != 0 ||
+ event.phase == blink::WebMouseWheelEvent::kPhaseEnded ||
+ event.phase == blink::WebMouseWheelEvent::kPhaseCancelled ||
+ event.momentum_phase == blink::WebMouseWheelEvent::kPhaseEnded ||
+ event.momentum_phase == blink::WebMouseWheelEvent::kPhaseCancelled)
host_->ForwardWheelEventWithLatencyInfo(event, latency);
}
« no previous file with comments | « no previous file | content/browser/site_per_process_mac_browsertest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698