summaryrefslogtreecommitdiffstats
path: root/content/browser/renderer_host/web_input_event_aurax11.cc
diff options
context:
space:
mode:
Diffstat (limited to 'content/browser/renderer_host/web_input_event_aurax11.cc')
-rw-r--r--content/browser/renderer_host/web_input_event_aurax11.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/content/browser/renderer_host/web_input_event_aurax11.cc b/content/browser/renderer_host/web_input_event_aurax11.cc
index b6037e3..a3aa22f 100644
--- a/content/browser/renderer_host/web_input_event_aurax11.cc
+++ b/content/browser/renderer_host/web_input_event_aurax11.cc
@@ -382,9 +382,9 @@ WebKit::WebTouchPoint* UpdateWebTouchEventFromAuraEvent(
point->position.x = event->x();
point->position.y = event->y();
- // TODO(sad): Convert to screen coordinates.
- point->screenPosition.x = point->position.x;
- point->screenPosition.y = point->position.y;
+ const gfx::Point root_point = event->root_location();
+ point->screenPosition.x = root_point.x();
+ point->screenPosition.y = root_point.y();
// Mark the rest of the points as stationary.
for (unsigned i = 0; i < web_event->touchesLength; ++i) {