fix TabDragging snap on tablet mode with Mash
The reported bug (tab-dragging to snap to left/right on tablet mode with Mash) happens due to the timing of ClearTabDraggingInfo(), it clears ash::kTabDroppedWindowStateTypeKey but this property is used on IsSnapped() function. To have this property, this CL moves invocation of ClearTabDraggingInfo() slightly later in EndDragImpl, so that CompleteDrag() can use the values. BUG=880635 TEST=existing test passes, assuming this break nothing Change-Id: I8ba34c793dade6462fb1ee9470851cf8f066c4ad Reviewed-on: https://chromium-review.googlesource.com/c/1256006 Commit-Queue: Jun Mukai <mukai@chromium.org> Reviewed-by:Scott Violet <sky@chromium.org> Cr-Commit-Position: refs/heads/master@{#596040}
Showing
Please register or sign in to comment