Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(900)

Unified Diff: ash/wm/workspace/workspace_window_resizer.cc

Issue 1128933005: Revert of Adjusts dragging logic to be less likely to trigger false positive switch from snapping to docking (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/wm/workspace/workspace_window_resizer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 73ba6fb89d02007071fb2eb83be349d88da418cf..bd1ef257747d2e1e568c615c36496843f3c44771 100644
--- a/ash/wm/workspace/workspace_window_resizer.cc
+++ b/ash/wm/workspace/workspace_window_resizer.cc
@@ -941,14 +941,10 @@
edge_cycler_.reset();
return;
}
- if (!edge_cycler_) {
- edge_cycler_.reset(new TwoStepEdgeCycler(
- location, snap_type_ == SNAP_LEFT
- ? TwoStepEdgeCycler::DIRECTION_LEFT
- : TwoStepEdgeCycler::DIRECTION_RIGHT));
- } else {
+ if (!edge_cycler_)
+ edge_cycler_.reset(new TwoStepEdgeCycler(location));
+ 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
« no previous file with comments | « ash/wm/workspace/workspace_window_resizer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698