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

Unified Diff: ui/views/touchui/touch_selection_controller_impl.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: ui/views/touchui/touch_selection_controller_impl.cc
diff --git a/ui/views/touchui/touch_selection_controller_impl.cc b/ui/views/touchui/touch_selection_controller_impl.cc
index 763096fc90c9feddab66ea1c32c95b9dfce06b0e..2d6996813f5d4912bde3595ef52200e45b2da948 100644
--- a/ui/views/touchui/touch_selection_controller_impl.cc
+++ b/ui/views/touchui/touch_selection_controller_impl.cc
@@ -214,8 +214,9 @@ class TouchSelectionControllerImpl::EditingHandleView
kSelectionHandleVerticalDragOffset;
break;
case ui::ET_GESTURE_SCROLL_UPDATE: {
- gfx::Point drag_pos(event->location().x(),
- event->location().y() - drag_offset_);
+ gfx::Point drag_pos(
+ gfx::ToFlooredPoint(event->location()).x(),
+ gfx::ToFlooredPoint(event->location()).y() - drag_offset_);
controller_->SelectionHandleDragged(drag_pos);
break;
}
« ui/events/event.h ('K') | « ui/views/corewm/tooltip_controller.cc ('k') | ui/views/view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698