[Webkit-unassigned] [Bug 206216] New: PointerEvent has 0 as pressure when the input device is not pressure-sensitive
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Jan 14 00:08:59 PST 2020
https://bugs.webkit.org/show_bug.cgi?id=206216
Bug ID: 206216
Summary: PointerEvent has 0 as pressure when the input device
is not pressure-sensitive
Product: WebKit
Version: Safari 13
Hardware: Macintosh
OS: macOS 10.15
Status: NEW
Severity: Normal
Priority: P2
Component: DOM
Assignee: webkit-unassigned at lists.webkit.org
Reporter: nekomanma at pixiv.com
W3C's pointer events level 2 specification states:
> For hardware and platforms that do not support pressure, the value MUST be 0.5 when in the active buttons state and 0 otherwise.
https://www.w3.org/TR/2019/REC-pointerevents2-20190404/
However, WebKit sets 0 as pressure in such case. The behavior is confirmed with:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.4 Safari/605.1.15
Apparently, WebKit refers to pressure property of NSEvent. The documentation states:
> For input devices that aren’t pressure-sensitive, the value is either 0.0 or 1.0.
https://developer.apple.com/documentation/appkit/nsevent/1534543-pressure
--
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/20200114/3d0e97c1/attachment.htm>
More information about the webkit-unassigned
mailing list