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

Unified Diff: ui/aura/root_window.cc

Issue 103173004: Target touches to the correct display. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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/aura/root_window.cc
diff --git a/ui/aura/root_window.cc b/ui/aura/root_window.cc
index 84c2e2260bc8bab55d19a833ad82fcc6c8b9686c..044074737a01a3eba3eb34dbef5311a51ab7e2f0 100644
--- a/ui/aura/root_window.cc
+++ b/ui/aura/root_window.cc
@@ -1037,8 +1037,9 @@ ui::EventDispatchDetails RootWindow::DispatchTouchEventImpl(
target = ConsumerToWindow(
ui::GestureRecognizer::Get()->GetTouchLockedTarget(*event));
if (!target) {
- target = ConsumerToWindow(ui::GestureRecognizer::Get()->
- GetTargetForLocation(event->location()));
+ target = ConsumerToWindow(
+ ui::GestureRecognizer::Get()->
+ GetTargetForLocation(event->location(), event->source_device_id()));
}
}

Powered by Google App Engine
This is Rietveld 408576698