Index: ui/aura/root_window.cc |
diff --git a/ui/aura/root_window.cc b/ui/aura/root_window.cc |
index e12e36c1d7063c92f52da8760b06fda9cc9a4cba..79c7d41d000186c0b1074bd310607347e4ee5345 100644 |
--- a/ui/aura/root_window.cc |
+++ b/ui/aura/root_window.cc |
@@ -834,7 +834,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(); |
@@ -891,7 +891,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; |
} |
@@ -966,7 +966,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); |
} |