| Index: ash/wm/workspace/workspace_window_resizer.cc
|
| diff --git a/ash/wm/workspace/workspace_window_resizer.cc b/ash/wm/workspace/workspace_window_resizer.cc
|
| index bd1ef257747d2e1e568c615c36496843f3c44771..73ba6fb89d02007071fb2eb83be349d88da418cf 100644
|
| --- a/ash/wm/workspace/workspace_window_resizer.cc
|
| +++ b/ash/wm/workspace/workspace_window_resizer.cc
|
| @@ -941,10 +941,14 @@ void WorkspaceWindowResizer::UpdateSnapPhantomWindow(const gfx::Point& location,
|
| edge_cycler_.reset();
|
| return;
|
| }
|
| - if (!edge_cycler_)
|
| - edge_cycler_.reset(new TwoStepEdgeCycler(location));
|
| - else
|
| + if (!edge_cycler_) {
|
| + edge_cycler_.reset(new TwoStepEdgeCycler(
|
| + location, snap_type_ == SNAP_LEFT
|
| + ? TwoStepEdgeCycler::DIRECTION_LEFT
|
| + : TwoStepEdgeCycler::DIRECTION_RIGHT));
|
| + } else {
|
| edge_cycler_->OnMove(location);
|
| + }
|
|
|
| // Update phantom window with snapped or docked guide bounds.
|
| // Windows that cannot be snapped or are less wide than kMaxDockWidth can get
|
|
|