home_screen: Clean up last_event_location_ usage in gesture handler
The HomeLauncherGestureHandler does not use last_event_location_ and last_scroll_y_ in kDragWindowToHomeOrOverview and kSwipeHomeToOverview mode except for derermining: * whether drag is in progress * the final state for slide up/down in OnTabletModeEnded For the first usage, checking the mode_ value should provide the same information. In the second case, finalizing slide up/down state is not the intended behavior - requesting drag mode controllers to cancel current drag operation would be more suitable course of action. BUG=1005366 Change-Id: I4ec543ae24c854edd681716aa784fe2925554679 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1872302 Commit-Queue: Toni Baržić <tbarzic@chromium.org> Reviewed-by:Xiaoqian Dai <xdai@chromium.org> Reviewed-by:
Ahmed Fakhry <afakhry@chromium.org> Cr-Commit-Position: refs/heads/master@{#708431}
Showing
Please register or sign in to comment