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

Unified Diff: ui/aura/window_targeter.cc

Issue 1423703002: Don't drop the floating point part of events when converting types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 | « ash/drag_drop/drag_drop_controller.cc ('k') | ui/events/gestures/motion_event_aura.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window_targeter.cc
diff --git a/ui/aura/window_targeter.cc b/ui/aura/window_targeter.cc
index 192bd600c76b411badfaaf6ce75b6d9cb739a0ba..df4e064ae8a2b2360025b70c35ffd875a8692e2c 100644
--- a/ui/aura/window_targeter.cc
+++ b/ui/aura/window_targeter.cc
@@ -152,9 +152,8 @@ Window* WindowTargeter::FindTargetInRootWindow(Window* root_window,
ui::GestureRecognizer::Get()->GetTouchLockedTarget(touch);
if (consumer)
return static_cast<Window*>(consumer);
- consumer =
- ui::GestureRecognizer::Get()->GetTargetForLocation(
- event.location(), touch.source_device_id());
+ consumer = ui::GestureRecognizer::Get()->GetTargetForLocation(
+ event.location_f(), touch.source_device_id());
if (consumer)
return static_cast<Window*>(consumer);
« no previous file with comments | « ash/drag_drop/drag_drop_controller.cc ('k') | ui/events/gestures/motion_event_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698