[Webkit-unassigned] [Bug 209292] CSS hover and pointer media queries not working with iOS 13.4 mouse support

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Mar 20 10:47:31 PDT 2020


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

--- Comment #7 from Maciej Stachowiak <mjs at apple.com> ---
None of these media queries can tell you if input was actually performed with a mouse, rather than with touch. On an iPad, the best they can do is tell you that a mouse or trackpad was attached, and thus potentially could have been the source of input.

For truly optional hover effects that are desired for pointer input but not mouse, the only method I know of to do them conditionally is to build them using pointer events. You can use the `pointerenter`/`pointerleave` pair, or the `pointerover`/`pointerout` pair, and then look at the `pointerType` property. https://www.w3.org/TR/pointerevents2/#dom-pointerevent-pointertype

It would be nice if there was a way to use pure CSS to get hover that only reacts to mouse events, and not to touch event hover simulation, but I don't think there is a way.

-- 
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/20200320/2a61c0aa/attachment.htm>


More information about the webkit-unassigned mailing list