[Webkit-unassigned] [Bug 139681] Touch support is reported even when the device doesn't have a touch screen

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Dec 17 10:27:26 PST 2014


https://bugs.webkit.org/show_bug.cgi?id=139681

--- Comment #4 from Carlos Garcia Campos <cgarcia at igalia.com> ---
We can make touch also a runtime feature, it's indeed listed in RuntimeEnabledFeatures, but ot actually used. However, I'm not sure it's possible to use "ontouchstart" in window to check if touch is enabled. That could be used to check if wk has been build with touch events enabled, but not if the feature is enabled at runtime. I don't think it's possible to not include attributes depending on runtime features. In case of touch being disabled at runtime, you could check if window.ontouchstart is undefined, for example, or if document.createEvent('TouchEvent') raises an exception.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20141217/693b10fd/attachment-0002.html>


More information about the webkit-unassigned mailing list