[Webkit-unassigned] [Bug 233432] New: [Pointer Events] pointerout event is fired after any pointerup event when pointer capture is set

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Nov 22 13:51:12 PST 2021


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

            Bug ID: 233432
           Summary: [Pointer Events] pointerout event is fired after any
                    pointerup event when pointer capture is set
           Product: WebKit
           Version: Safari 15
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: UI Events
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: polygonalsun at gmail.com

pointerout elements are being fired erroneously when a pointerup event occurs, while pointer capture has been set.  While they will fire, as expected, when leaving the confines of an HTMLElement, they will also fire if pointer capture is set before a pointer button is released.

JSFiddle repro: https://jsfiddle.net/81L3fbsv/ (Run and just click in the canvas area)

Repro:
1. Create canvas HTMLElement
2. Add event listener for "pointerdown" to set pointer capture
3. Add event listener for "pointerout" to do something like print to the console
4. Click in the canvas area without exiting it

Expected behavior: Nothing should happen

Actual behavior: When the pointer button is released, the contents of the "pointerout" callback is run (eg. message is printed to log)

-- 
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/20211122/2791cb42/attachment.htm>


More information about the webkit-unassigned mailing list