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

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

Issue 2950913002: Added new features tests to AppListPresenterDelegateUnittests. (Closed)
Patch Set: Added missing test to filter, alphabetized filtered tests. 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
« no previous file with comments | « testing/buildbot/filters/ash_unittests_mus.filter ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..79fa7426591014c968964945efe9660631c99c4a 100644
--- a/ui/app_list/views/app_list_view.cc
+++ b/ui/app_list/views/app_list_view.cc
@@ -521,7 +521,7 @@ void AppListView::EndDrag(const gfx::Point& location) {
// fling.
int const new_y_position = location.y() - initial_drag_point_.y() +
fullscreen_widget_->GetWindowBoundsInScreen().y();
- if (std::abs(last_fling_velocity_) > kAppListDragVelocityThreshold) {
+ if (std::abs(last_fling_velocity_) >= kAppListDragVelocityThreshold) {
// If the user releases drag with velocity over the threshold, snap to
// the next state, ignoring the drag release position.
@@ -724,12 +724,13 @@ void AppListView::OnGestureEvent(ui::GestureEvent* event) {
return;
switch (event->type()) {
+ case ui::ET_SCROLL_FLING_START:
case ui::ET_GESTURE_SCROLL_BEGIN:
StartDrag(event->location());
event->SetHandled();
break;
case ui::ET_GESTURE_SCROLL_UPDATE:
- last_fling_velocity_ = event->details().velocity_y();
+ last_fling_velocity_ = event->details().scroll_y();
UpdateDrag(event->location());
event->SetHandled();
break;
« no previous file with comments | « testing/buildbot/filters/ash_unittests_mus.filter ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698