summaryrefslogtreecommitdiff
path: root/Source/WebKit/qt/WidgetApi/qwebview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebKit/qt/WidgetApi/qwebview.cpp')
-rw-r--r--Source/WebKit/qt/WidgetApi/qwebview.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/WebKit/qt/WidgetApi/qwebview.cpp b/Source/WebKit/qt/WidgetApi/qwebview.cpp
index 9ba962178..bcbf3dcc2 100644
--- a/Source/WebKit/qt/WidgetApi/qwebview.cpp
+++ b/Source/WebKit/qt/WidgetApi/qwebview.cpp
@@ -722,10 +722,8 @@ bool QWebView::event(QEvent *e)
|| e->type() == QEvent::TouchEnd
|| e->type() == QEvent::TouchUpdate
|| e->type() == QEvent::TouchCancel) {
- d->page->event(e);
-
- // Always return true so that we'll receive also TouchUpdate and TouchEnd events
- return true;
+ if (d->page->event(e))
+ return true;
} else if (e->type() == QEvent::Leave)
d->page->event(e);
}