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

Unified Diff: ash/display/event_transformation_handler.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/display/event_transformation_handler.cc
diff --git a/ash/display/event_transformation_handler.cc b/ash/display/event_transformation_handler.cc
index ef545fc1d2142e02c0e533ac0e26edfe018b728d..9582becbd13a39394bbd0bc480a16c0c60dcdf91 100644
--- a/ash/display/event_transformation_handler.cc
+++ b/ash/display/event_transformation_handler.cc
@@ -40,7 +40,7 @@ void EventTransformationHandler::OnScrollEvent(ui::ScrollEvent* event) {
// It is unnecessary to scale the event for the device scale factor since
// the event locations etc. are already in DIP.
- gfx::Point point_in_screen(event->location());
+ gfx::Point point_in_screen(gfx::ToFlooredPoint(event->location()));
aura::Window* target = static_cast<aura::Window*>(event->target());
wm::ConvertPointToScreen(target, &point_in_screen);
const gfx::Display& display =

Powered by Google App Engine
This is Rietveld 408576698