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


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

Darin Adler <darin at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |darin at apple.com
 Attachment #388210|review?                     |review+
              Flags|                            |

--- Comment #3 from Darin Adler <darin at apple.com> ---
Comment on attachment 388210
  --> https://bugs.webkit.org/attachment.cgi?id=388210
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.

> LayoutTests/ChangeLog:11
> +        * pointerevents/mouse/pointer-button-and-buttons-expected.txt: Removed.
> +        * pointerevents/mouse/pointer-button-and-buttons.html: Removed.
> +        * pointerevents/mouse/pointer-button-buttons-and-pressure-expected.txt: Added.
> +        * pointerevents/mouse/pointer-button-buttons-and-pressure.html: Added.

Why are we renaming this test case?

-- 
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/968bfb08/attachment.htm>


More information about the webkit-unassigned mailing list