Do not accept all touch events
authorAllan Sandfeld Jensen <allan.jensen@digia.com>
Fri, 15 Nov 2013 16:08:26 +0000 (17:08 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 20 Dec 2013 10:01:23 +0000 (11:01 +0100)
commita038352dc05a880eec6b94b5ba4e01673b1565ca
tree61e1e1462721ab451dd4d699f64a294e581cd9be
parent3bb9504f1ba458fac713200cb4dfcb2592c8f0ea
Do not accept all touch events

QtWebKit currently accepts all touch events to prevent the lack of accept
on a TouchBegin from preventing receiving TouchUpdate and TouchEnd.

This behavior prevents QGuiApplication from converting touch events to
mouse events, and makes the WebView widget impossible to interact with
by touch.

This patch modifies the behavior slighly so that QtWebKit only accepts
touch events if they are needed for the active document.

Task-number: QTBUG-31938
Change-Id: Iba80ebfaf31c93f82356e3f0622039120921172a
Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
Source/WebKit/qt/WebCoreSupport/QWebPageAdapter.cpp
Source/WebKit/qt/WidgetApi/qgraphicswebview.cpp
Source/WebKit/qt/WidgetApi/qwebview.cpp