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

Unified Diff: ui/aura/root_window.cc

Issue 10306014: Calibrating touch input (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Addressing comments Created 8 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
« no previous file with comments | « no previous file | ui/base/ui_base_switches.h » ('j') | ui/base/ui_base_switches.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/root_window.cc
diff --git a/ui/aura/root_window.cc b/ui/aura/root_window.cc
index aeb3651bd788d7937dfccff504cd475a57a3de6f..3bad2d0f11c24212bf24420e146a484f56e62d21 100644
--- a/ui/aura/root_window.cc
+++ b/ui/aura/root_window.cc
@@ -310,7 +310,8 @@ bool RootWindow::DispatchTouchEvent(TouchEvent* event) {
// If the touch is outside the root window, set its target to the
// root window.
target = this;
- } else {
+ } else if (target != this) {
sky 2012/05/04 16:31:41 Can you add a test case for this?
Mr4D (OOO till 08-26) 2012/05/07 16:28:21 After discussion with Sadrul I changed this to the
+ // We only come here when the first contact was within the root window.
if (!target)
target = GetEventHandlerForPoint(event->location());
if (!target)
« no previous file with comments | « no previous file | ui/base/ui_base_switches.h » ('j') | ui/base/ui_base_switches.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698