Chromium Code Reviews| Index: ash/common/wm/drag_details.cc |
| diff --git a/ash/common/wm/drag_details.cc b/ash/common/wm/drag_details.cc |
| index 1f8f93be44ee8a2a2a34a67e30baa242d00a86b5..73815a41eff661689edb01ef949a23737c47f3a0 100644 |
| --- a/ash/common/wm/drag_details.cc |
| +++ b/ash/common/wm/drag_details.cc |
| @@ -50,7 +50,10 @@ DragDetails::DragDetails(WmWindow* window, |
| : initial_state_type(window->GetWindowState()->GetStateType()), |
| initial_bounds_in_parent(window->GetBounds()), |
| initial_location_in_parent(location), |
| - initial_opacity(window->GetLayer()->opacity()), |
| + // When drag starts, we might be in the middle of a window opacity |
| + // animation, on drag completion we must set the opacity to the target |
| + // opacity rather than the current opacity (crbug.com/687003). |
| + initial_opacity(window->GetLayer()->GetTargetOpacity()), |
|
sky
2017/02/06 22:37:59
This is subtle. I would be nice to have test cover
|
| window_component(window_component), |
| bounds_change( |
| WindowResizer::GetBoundsChangeForWindowComponent(window_component)), |