summaryrefslogtreecommitdiffstats
path: root/webkit/plugins/webview_plugin.cc
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/plugins/webview_plugin.cc')
-rw-r--r--webkit/plugins/webview_plugin.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/webkit/plugins/webview_plugin.cc b/webkit/plugins/webview_plugin.cc
index a9af016..975365b 100644
--- a/webkit/plugins/webview_plugin.cc
+++ b/webkit/plugins/webview_plugin.cc
@@ -162,6 +162,11 @@ bool WebViewPlugin::acceptsInputEvents() {
bool WebViewPlugin::handleInputEvent(const WebInputEvent& event,
WebCursorInfo& cursor) {
+ // For tap events, don't handle them. They will be converted to
+ // mouse events later and passed to here.
+ if (event.type == WebInputEvent::GestureTap)
+ return false;
+
if (event.type == WebInputEvent::ContextMenu) {
if (delegate_) {
const WebMouseEvent& mouse_event =
@@ -173,6 +178,7 @@ bool WebViewPlugin::handleInputEvent(const WebInputEvent& event,
current_cursor_ = cursor;
bool handled = web_view_->handleInputEvent(event);
cursor = current_cursor_;
+
return handled;
}