[Webkit-unassigned] [Bug 206216] PointerEvent has 0 as pressure when the input device is not pressure-sensitive

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jan 20 10:17:20 PST 2020


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

--- Comment #4 from Darin Adler <darin at apple.com> ---
(In reply to Akihiko Odaki from comment #0)
> 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

Aside from the bug fixed here, this implies that on *Cocoa* platforms, for non-pressure-sensitive devices, WebKit is setting 1.0 as the pressure, where the standard instead requests/requires that we set it to 0.5. May be challenging to fix if NSEvent does not tell us whether the device is pressure-sensitive. It would be good if someone investigated this and created tests.

-- 
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/20200120/8be980e7/attachment.htm>


More information about the webkit-unassigned mailing list