Chromium Code Reviews| Index: ui/aura/root_window.cc |
| diff --git a/ui/aura/root_window.cc b/ui/aura/root_window.cc |
| index aeb3651bd788d7937dfccff504cd475a57a3de6f..3bad2d0f11c24212bf24420e146a484f56e62d21 100644 |
| --- a/ui/aura/root_window.cc |
| +++ b/ui/aura/root_window.cc |
| @@ -310,7 +310,8 @@ bool RootWindow::DispatchTouchEvent(TouchEvent* event) { |
| // If the touch is outside the root window, set its target to the |
| // root window. |
| target = this; |
| - } else { |
| + } else if (target != this) { |
|
sky
2012/05/04 16:31:41
Can you add a test case for this?
Mr4D (OOO till 08-26)
2012/05/07 16:28:21
After discussion with Sadrul I changed this to the
|
| + // We only come here when the first contact was within the root window. |
| if (!target) |
| target = GetEventHandlerForPoint(event->location()); |
| if (!target) |