Bug 203031

Summary: iPad not triggering the same pointer events as iPhone
Product: WebKit Reporter: filcab <webkit.bugzilla>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: RESOLVED CONFIGURATION CHANGED    
Severity: Normal CC: graouts
Priority: P2    
Version: Safari 13   
Hardware: iPhone / iPad   
OS: iOS 13   
Attachments:
Description Flags
Test page none

filcab
Reported 2019-10-16 02:29:46 PDT
I'm attaching a page with some JS for showing which events are being triggered. I'm seeing a difference between iPad and iPhone that I can't explain: On the iPad, a double-tap on the "test" button will only trigger one "pointerdown/pointerup" pair, whilst on the iPhone it triggers two, one pair for each tap. Sequence of printed lines on the iPad for a double-tap on the "test" button: pointerdown pointerup mousemove mousedown mouseup click mousedown mouseup click dblclick Sequence of printed lines on the iPhone: pointerdown pointerup mousemove mousedown mouseup click pointerdown pointerup (no mousemove) mousedown mouseup click dblclick I found this when trying to fix this leaflet bug: https://github.com/Leaflet/Leaflet/issues/6817 I have a fix which works for the iPhone (leaflet wasn't doing what it should on new Safari with PointerEvents), but for the iPad it fails. I tracked down this difference in behaviour. I'm not sure this is the cause (I don't even see 'click' events being triggered by the second tap on the iPad) https://github.com/Leaflet/Leaflet/pull/6855 I tried searching on bugzilla, but I couldn't find a similar bug. Sorry if this is a duplicate. Thank you, Filipe
Attachments
Test page (724 bytes, text/html)
2019-10-16 03:18 PDT, filcab
no flags
filcab
Comment 1 2019-10-16 02:56:36 PDT
iOS version on both: iOS 13.1.2
filcab
Comment 2 2019-10-16 03:18:26 PDT
Created attachment 381065 [details] Test page Actually attaching the file
Antoine Quint
Comment 3 2019-10-16 04:19:30 PDT
Thanks for filing this Filipe. In iOS and iPadOS 13.2 the difference you mention is gone and event log from iPhone as you list it will be the same on iPad as well. You can verify this with the latest iPadOS 13.2 developer seed from developer.apple.com.
Note You need to log in before you can comment on or make changes to this bug.