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

Unified Diff: ui/app_list/views/app_list_view.cc

Issue 2952763002: SearchBoxView now enables/disables cursor based on user interaction. (Closed)
Patch Set: Addressed Comments, refactored. Created 3 years, 6 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
Index: ui/app_list/views/app_list_view.cc
diff --git a/ui/app_list/views/app_list_view.cc b/ui/app_list/views/app_list_view.cc
index 128b018f2dcde90c6ba3207842482f48d98945ee..35f6603a56888f22fb81250003ff20f889a3df29 100644
--- a/ui/app_list/views/app_list_view.cc
+++ b/ui/app_list/views/app_list_view.cc
@@ -516,6 +516,9 @@ void AppListView::UpdateDrag(const gfx::Point& location) {
}
void AppListView::EndDrag(const gfx::Point& location) {
+ // When the SearchBoxView closes the app list, ignore the final event.
+ if (app_list_state_ == CLOSED)
+ return;
// Change the app list state based on where the drag ended. If fling velocity
// was over the threshold, snap to the next state in the direction of the
// fling.

Powered by Google App Engine
This is Rietveld 408576698