Index: ui/aura/root_window.cc |
diff --git a/ui/aura/root_window.cc b/ui/aura/root_window.cc |
index 57b96684bd41fa2872f5ac1ea2fbfa05bda83ffa..d34a20a3177cfcfb0bee5b1cdfc89c03604a28f3 100644 |
--- a/ui/aura/root_window.cc |
+++ b/ui/aura/root_window.cc |
@@ -823,7 +823,7 @@ bool RootWindow::OnHostScrollEvent(ui::ScrollEvent* event) { |
Window* target = mouse_pressed_handler_ ? |
mouse_pressed_handler_ : client::GetCaptureWindow(this); |
if (!target) |
- target = GetEventHandlerForPoint(event->location()); |
+ target = GetEventHandlerForPoint(event->location(), event->type()); |
if (target && target->delegate()) { |
int flags = event->flags(); |
@@ -880,7 +880,7 @@ bool RootWindow::OnHostTouchEvent(ui::TouchEvent* event) { |
} else { |
// We only come here when the first contact was within the root window. |
if (!target) { |
- target = GetEventHandlerForPoint(event->location()); |
+ target = GetEventHandlerForPoint(event->location(), event->type()); |
if (!target) |
return false; |
} |
@@ -950,7 +950,7 @@ bool RootWindow::DispatchMouseEventImpl(ui::MouseEvent* event) { |
Window* target = mouse_pressed_handler_ ? |
mouse_pressed_handler_ : client::GetCaptureWindow(this); |
if (!target) |
- target = GetEventHandlerForPoint(event->location()); |
+ target = GetEventHandlerForPoint(event->location(), event->type()); |
return DispatchMouseEventToTarget(event, target); |
} |