[Webkit-unassigned] [Bug 210054] New: Unable to distinguish compatibility mouse events from real mouse events

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Apr 6 09:45:38 PDT 2020


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

            Bug ID: 210054
           Summary: Unable to distinguish compatibility mouse events from
                    real mouse events
           Product: WebKit
           Version: Safari 13
          Hardware: iPhone / iPad
                OS: iOS 13
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit Misc.
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: ashley at scirra.com

As of iPadOS 13.4, you can connect a bluetooth mouse to an iPad and use real mouse input in a web page.

Unfortunately touch events (and IIRC pointer events) can still fire compatibility mouse events after touch input. It is now fiendishly difficult to tell apart compatibility mouse events from real mouse input. This can result in bugs where buttons or elements get double-pressed, because it receives both a touch event and mouse event.

Using pointer events consistently everywhere is a good idea, but for large web apps with ~500k lines of code all depending on touch events, overhauling all this code for a different input API is a major project. Further this would cause us to drop support for iOS 12 and older, which Apple's official stats still show is a large number of devices, especially including all devices (not just ones from the past 4 years). Previously we just ignored all mouse events on iOS, but now we can't do that, because it blocks using a bluetooth mouse.

Chrome on Android has long supported Input Device Capabilities, so you can easily identify compatibility mouse events with e.sourceCapabilities.firesTouchEvents (indicating a mouse event that was fired from a touchscreen device). Please consider adding this to Safari. It makes it trivial to ignore compatibility mouse events in large complex webapps that are difficult to port to Pointer Events.

-- 
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/20200406/2dcafcaf/attachment.htm>


More information about the webkit-unassigned mailing list