Bug 239810
| Summary: | iOS Safari "click" events use the MouseEvent interface instead of the PointerEvent interface | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Jarod Gowgiel <jarod.gowgiel> |
| Component: | UI Events | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Normal | ||
| Priority: | P2 | ||
| Version: | Safari 15 | ||
| Hardware: | iPhone / iPad | ||
| OS: | iOS 15 | ||
Jarod Gowgiel
Per https://www.w3.org/TR/uievents/#event-type-click, a "click" event should use the PointerEvent interface. In iOS Safari, these events instead use the MouseEvent interface.
Steps to reproduce:
On iOS Safari, tap the "Target" box on https://codepen.io/JarodG/pen/qBPaVgJ. Notice:
* pointer<type> events use PointerEvent (correct)
* touch<type> events use TouchEvent (correct)
* mouse<type> events use MouseEvent (correct)
* click uses a MouseEvent (incorrect - should be PointerEvent)
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Sam Sneddon [:gsnedders]
*** This bug has been marked as a duplicate of bug 218665 ***