[Webkit-unassigned] [Bug 220194] `PointerEvent.movementX` always 0

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Dec 26 01:53:37 PST 2021


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

--- Comment #6 from Lucas Garron <lgarron at chromium.org> ---
I'd also like to add that none of the following are effective for feature detection:

- `"movementX" in e`
- `e.movementX !== "undefined"`
- `e.hasOwnProperty("movementX")`

The fact that `movementX` can be an incorrect of `0` instead of `undefined` means that I can't trust a numerical value without something like UA sniffing, which should really be an anti-pattern at this point. :-/

-- 
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/20211226/a43c9a03/attachment.htm>


More information about the webkit-unassigned mailing list