Index: third_party/WebKit/Source/web/WebViewImpl.cpp |
diff --git a/third_party/WebKit/Source/web/WebViewImpl.cpp b/third_party/WebKit/Source/web/WebViewImpl.cpp |
index 1330049612f6d59aee3d227ebb56d73fec288375..c8d306195c4d5f32c44c4d36072f4e92f107a077 100644 |
--- a/third_party/WebKit/Source/web/WebViewImpl.cpp |
+++ b/third_party/WebKit/Source/web/WebViewImpl.cpp |
@@ -904,6 +904,10 @@ WebInputEventResult WebViewImpl::handleGestureEvent( |
case WebInputEvent::GestureShowPress: |
m_client->cancelScheduledContentIntents(); |
case WebInputEvent::GestureTapDown: |
+ // Touch pinch zoom and scroll must hide the popup. In case of a touch |
+ // scroll or pinch zoom, this function is called with GestureTapDown |
+ // rather than a GSB/GSU/GSE or GPB/GPU/GPE. |
+ hidePopups(); |
case WebInputEvent::GestureTapCancel: |
case WebInputEvent::GestureTapUnconfirmed: { |
eventResult = mainFrameImpl()->frame()->eventHandler().handleGestureEvent( |