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

Unified Diff: ui/app_list/pagination_model.cc

Issue 10832255: app_list: Improve visual feedback for invalid touch scroll. (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/apps_grid_view.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/pagination_model.cc
diff --git a/ui/app_list/pagination_model.cc b/ui/app_list/pagination_model.cc
index cc9e4022dc47002b2726218956d101995cd81bc5..67cb2010e5055891d3672f77f3335b06534af1f3 100644
--- a/ui/app_list/pagination_model.cc
+++ b/ui/app_list/pagination_model.cc
@@ -107,9 +107,10 @@ void PaginationModel::UpdateScroll(double delta) {
if (progress < 0) {
clear_transition();
} else if (progress > 1) {
- if (is_valid_page(transition_.target_page))
+ if (is_valid_page(transition_.target_page)) {
SelectPage(transition_.target_page, false);
- clear_transition();
+ clear_transition();
+ }
} else {
transition_.progress = progress;
NotifyTransitionChanged();
« no previous file with comments | « ui/app_list/apps_grid_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698