[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 14:57:08 PST 2020


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

--- Comment #5 from Antoine Quint <graouts at apple.com> ---
(In reply to Darin Adler from comment #3)
> Comment on attachment 388210 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=388210&action=review
> 
> > Source/WebCore/dom/PointerEvent.cpp:115
> > +    , m_pressure(mouseEvent.buttons() ? 0.5 : 0)
> 
> I am not 100% sure this is right. The specification calls for all pointerup
> events having pressure of 0. Are we guaranteed that buttons() will be 0 for
> *all* pointerup events? The test case covers only a simple case of a mouse
> with a single button.

Maybe it would be better to use the provided event type to set the pressure value.

-- 
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/978b8ba9/attachment.htm>


More information about the webkit-unassigned mailing list