Index: ash/wm/toplevel_window_event_handler.cc |
diff --git a/ash/wm/toplevel_window_event_handler.cc b/ash/wm/toplevel_window_event_handler.cc |
index 933c94770c3a5a2fa578db5e16478b141a48af41..4692c4b80386d2fe4767881a6af4aa6482c87b60 100644 |
--- a/ash/wm/toplevel_window_event_handler.cc |
+++ b/ash/wm/toplevel_window_event_handler.cc |
@@ -387,9 +387,7 @@ void ToplevelWindowEventHandler::CompleteDrag(DragCompletionStatus status, |
void ToplevelWindowEventHandler::HandleMousePressed( |
aura::Window* target, |
ui::MouseEvent* event) { |
- // Move/size operations are initiated post-target handling to give the target |
- // an opportunity to cancel this default behavior by returning ER_HANDLED. |
- if (ui::EventCanceledDefaultHandling(*event)) |
+ if (event->phase() != ui::EP_PRETARGET) |
return; |
// We also update the current window component here because for the |