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

Unified Diff: ui/app_list/app_list_item_view.cc

Issue 10890049: app_list: Touch scroll and animation improvement. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 | « ui/app_list/app_list_item_view.h ('k') | ui/app_list/app_list_view.cc » ('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 c5263bb8902022759474b5b1bb55d8b6d44f1374..995ce7b1d38d92512761ce7b7d26a769a33609ac 100644
--- a/ui/app_list/app_list_item_view.cc
+++ b/ui/app_list/app_list_item_view.cc
@@ -306,4 +306,13 @@ void AppListItemView::StateChanged() {
}
}
+bool AppListItemView::ShouldEnterPushedState(const ui::Event& event) {
+ // Don't enter pushed state for ET_GESTURE_TAP_DOWN so that hover gray
+ // background does not show up during scroll.
+ if (event.type() == ui::ET_GESTURE_TAP_DOWN)
+ return false;
+
+ return views::CustomButton::ShouldEnterPushedState(event);
+}
+
} // namespace app_list
« no previous file with comments | « ui/app_list/app_list_item_view.h ('k') | ui/app_list/app_list_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698