Index: ui/aura/window_event_dispatcher.cc |
diff --git a/ui/aura/window_event_dispatcher.cc b/ui/aura/window_event_dispatcher.cc |
index 350066f7dd31e9e08c9ca72bf5f77377ab547e3e..7b40c71a06e473df88478d3fc1641b00d402875e 100644 |
--- a/ui/aura/window_event_dispatcher.cc |
+++ b/ui/aura/window_event_dispatcher.cc |
@@ -893,11 +893,11 @@ void WindowEventDispatcher::PreDispatchTouchEvent(Window* target, |
ui::TouchEvent orig_event(*event, target, window()); |
// If the touch event is invalid in some way, the gesture recognizer will |
- // reject it. In this case, stop the touch from reaching the next event |
- // phase. |
+ // reject it. This must call |StopPropagation()|, in order to prevent the |
+ // touch from being acked in |PostDispatchEvent|. |
if (!ui::GestureRecognizer::Get()->ProcessTouchEventPreDispatch(orig_event, |
target)) { |
- event->SetHandled(); |
+ event->StopPropagation(); |
} |
} |