Index: third_party/WebKit/Source/web/WebPagePopupImpl.cpp |
diff --git a/third_party/WebKit/Source/web/WebPagePopupImpl.cpp b/third_party/WebKit/Source/web/WebPagePopupImpl.cpp |
index 2b83ad5714484f6cab641241da89f1eebb9ea2b2..9f4e2d9c7e3c0d8522aa49742ad273b0f0658e73 100644 |
--- a/third_party/WebKit/Source/web/WebPagePopupImpl.cpp |
+++ b/third_party/WebKit/Source/web/WebPagePopupImpl.cpp |
@@ -457,7 +457,8 @@ WebInputEventResult WebPagePopupImpl::handleGestureEvent( |
if (m_closing || !m_page || !m_page->mainFrame() || |
!toLocalFrame(m_page->mainFrame())->view()) |
return WebInputEventResult::NotHandled; |
- if (event.type == WebInputEvent::GestureTap && |
+ if ((event.type == WebInputEvent::GestureTap || |
+ event.type == WebInputEvent::GestureTapDown) && |
!isViewportPointInWindow(event.x, event.y)) { |
cancel(); |
return WebInputEventResult::NotHandled; |