Index: ash/wm/gestures/two_finger_drag_handler.cc |
diff --git a/ash/wm/gestures/two_finger_drag_handler.cc b/ash/wm/gestures/two_finger_drag_handler.cc |
index d042a2fe9830bc681f8bb226e4f6728d45fb914e..a94c236356298583ac0e0932d3155ad392ccfa18 100644 |
--- a/ash/wm/gestures/two_finger_drag_handler.cc |
+++ b/ash/wm/gestures/two_finger_drag_handler.cc |
@@ -134,7 +134,8 @@ bool TwoFingerDragHandler::ProcessGestureEvent(aura::Window* target, |
if (event.details().swipe_up()) { |
if (wm::CanMaximizeWindow(target)) |
wm::MaximizeWindow(target); |
- } else if (event.details().swipe_down()) { |
+ } else if (event.details().swipe_down() && |
+ wm::CanMinimizeWindow(target)) { |
wm::MinimizeWindow(target); |
} else if (wm::CanSnapWindow(target)) { |
ui::ScopedLayerAnimationSettings scoped_setter( |