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

Unified Diff: ui/app_list/app_list_item_view.cc

Issue 10961020: cros: Fix mouse over-scroll animation not happening. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix jumping around when mouse is hovering on an item Created 8 years, 3 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/app_list_controller.cc ('k') | ui/app_list/apps_grid_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/app_list_item_view.cc
diff --git a/ui/app_list/app_list_item_view.cc b/ui/app_list/app_list_item_view.cc
index c06f15bcd5bded46080e63b7805aa018fa2b1777..2dc02af72655783ceb3aa959d4bb80022e2cebd7 100644
--- a/ui/app_list/app_list_item_view.cc
+++ b/ui/app_list/app_list_item_view.cc
@@ -216,7 +216,9 @@ void AppListItemView::ShowContextMenuForView(views::View* source,
void AppListItemView::StateChanged() {
if (state() == BS_HOT || state() == BS_PUSHED) {
- apps_grid_view_->SetSelectedItem(this);
+ // Don't auto select item if there is a running page transition.
+ if (!apps_grid_view_->HasPageTransition())
+ apps_grid_view_->SetSelectedItem(this);
title_->SetEnabledColor(kTitleHoverColor);
} else {
apps_grid_view_->ClearSelectedItem(this);
« no previous file with comments | « ash/wm/app_list_controller.cc ('k') | ui/app_list/apps_grid_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698