Index: ui/views/controls/menu/menu_host.cc |
diff --git a/ui/views/controls/menu/menu_host.cc b/ui/views/controls/menu/menu_host.cc |
index ad7915a22eedc3207188a94bfe539a6527e2be6b..b72b7a4eecd94d082d41d33e966d4404a88bf069 100644 |
--- a/ui/views/controls/menu/menu_host.cc |
+++ b/ui/views/controls/menu/menu_host.cc |
@@ -72,7 +72,9 @@ void MenuHost::ShowMenuHost(bool do_capture) { |
if (do_capture) { |
// Cancel existing touches, so we don't miss some touch release/cancel |
// events due to the menu taking capture. |
+#if defined(USE_AURA) |
ui::GestureRecognizer::Get()->TransferEventsTo(NULL, NULL); |
+#endif |
native_widget_private()->SetCapture(); |
} |
} |