REVIEW: Have MouseWheelPhaseHandler agree on whether to route its wheel event

https://chromium-review.googlesource.com/c/chromium/src/+/1401664
This commit is contained in:
deepak1556 2019-02-04 14:41:38 +05:30
parent e11589b5be
commit 8a51c9c2f6

View file

@ -1080,7 +1080,11 @@ void OffScreenRenderWidgetHostView::SendMouseWheelEvent(
blink::WebMouseWheelEvent mouse_wheel_event(event);
mouse_wheel_phase_handler_.SendWheelEndForTouchpadScrollingIfNeeded();
bool should_route_event =
render_widget_host_->delegate() &&
render_widget_host_->delegate()->GetInputEventRouter();
mouse_wheel_phase_handler_.SendWheelEndForTouchpadScrollingIfNeeded(
should_route_event);
mouse_wheel_phase_handler_.AddPhaseIfNeededAndScheduleEndEvent(
mouse_wheel_event, false);