[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 May 22 07:13:37 PDT 2019
https://bugs.webkit.org/show_bug.cgi?id=139681
--- Comment #22 from Ryan DeBeasi <hi at ryandebeasi.com> ---
My understanding is if a device has both a touch screen and a mouse, reporting support for touch events is valid behavior. So, I think option A would be a totally reasonable course of action.
For more granular touch/mouse checks, web developers can check for the `pointer` CSS media feature. CSS media queries for the pointer also return some inaccurate results on WebKit GTK+ - see Bug 197773.
https://developer.mozilla.org/en-US/docs/Web/CSS/@media/pointer
https://hacks.mozilla.org/2013/04/detecting-touch-its-the-why-not-the-how/
https://peterscene.com/detecting-touch-devices-2018-update/
Thank you so much for your time!
--
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/20190522/e2dcbf86/attachment.html>
More information about the webkit-unassigned
mailing list