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

Unified Diff: ash/shelf/shelf_view.cc

Issue 139983009: ui::LocatedEvent location() returns gfx::PointF (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Undo accidental change. Created 6 years, 8 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: ash/shelf/shelf_view.cc
diff --git a/ash/shelf/shelf_view.cc b/ash/shelf/shelf_view.cc
index 1cc1cf61203d2e22519615086d8dfb21a5564d52..35a179139aa3359b1dbde56613ba9da38c1a3359 100644
--- a/ash/shelf/shelf_view.cc
+++ b/ash/shelf/shelf_view.cc
@@ -948,7 +948,7 @@ void ShelfView::ContinueDrag(const ui::LocatedEvent& event) {
}
// TODO: I don't think this works correctly with RTL.
- gfx::Point drag_point(event.location());
+ gfx::Point drag_point(gfx::ToFlooredPoint(event.location()));
ConvertPointToTarget(drag_view_, this, &drag_point);
// Constrain the location to the range of valid indices for the type.

Powered by Google App Engine
This is Rietveld 408576698