[Webkit-unassigned] [Bug 214609] New: Safari on iOS fires "pointerenter" with mouse pointerType in addition to touch

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jul 21 11:55:19 PDT 2020


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

            Bug ID: 214609
           Summary: Safari on iOS fires "pointerenter" with mouse
                    pointerType in addition to touch
           Product: WebKit
           Version: Safari 13
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: UI Events
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: govett at adobe.com

When you have an element with a `tabIndex`, Safari on iOS fires the "pointer enter" and "pointerleave" events twice: once with `pointerType` set to "touch", and again with `pointerType` set to "mouse". After touching and releasing the element, the events fired are:

* pointer enter: pointerType = "touch"
* pointer leave: pointerType = "touch"
* pointer enter: pointerType = "mouse"

A pointer leave event with pointerType = "mouse" is not fired until the element is blurred (e.g. by tapping on something else that's focusable). Based on this information, it appears that focus/blur events are also causing pointer enter/pointer leave events.

You can try this out in a demo here: https://codepen.io/devongovett/pen/QWyYWYa

-- 
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/20200721/66dbb6e4/attachment.htm>


More information about the webkit-unassigned mailing list