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:
parent
e11589b5be
commit
8a51c9c2f6
1 changed files with 5 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue