Bug 211179

Summary: REGRESSION: Double tap dispatches one click event on iOS 13.4 when it would dispatch two on iOS 13.3
Product: WebKit Reporter: Antoine Quint <graouts>
Component: UI EventsAssignee: Wenson Hsieh <wenson_hsieh>
Status: RESOLVED FIXED    
Severity: Normal CC: bdakin, graouts, juwagn, megan_gardner, thorton, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
URL: https://codepen.io/juliogcampos/pen/BzdjwY
See Also: https://bugs.webkit.org/show_bug.cgi?id=204664
Attachments:
Description Flags
Patch none

Description Antoine Quint 2020-04-29 06:08:58 PDT
Filing this bug to track the discussion on React issue 17258 (https://github.com/facebook/react/issues/17258) and specifically comment https://github.com/facebook/react/issues/17258#issuecomment-620325096 which points to a CodePen (https://codepen.io/juliogcampos/pen/BzdjwY) showing an example where the behavior differs between iOS 13.3 and iOS 13.4. I tested this myself on iPhone 8.
Comment 1 Radar WebKit Bug Importer 2020-04-29 06:09:28 PDT
<rdar://problem/62594779>
Comment 2 Antoine Quint 2020-04-29 06:24:59 PDT
On iOS 13.1: two taps = one click event
On iOS 13.3: two taps = two click events
On iOS 13.4: two taps = one click event

I believe the iOS 13.3 behavior is the correct one. This sounds like bug 202006 is back :(
Comment 3 Antoine Quint 2020-04-29 07:37:33 PDT
This regressed with r253267, the fix for bug 204664.
Comment 4 Wenson Hsieh 2020-04-30 17:28:10 PDT
Created attachment 398127 [details]
Patch
Comment 5 EWS 2020-04-30 20:01:13 PDT
Committed r260979: <https://trac.webkit.org/changeset/260979>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 398127 [details].
Comment 6 juwagn 2020-05-06 13:13:01 PDT
Hi, my bug on iOS 3.4.1 was marked as possible dupe of this one.
However by me it is about touchstart/touchend events, or pointerdown/pointerup, where by fast two touches sequence only one event gets fired instead sequential two.
Also it is not about click event but could be potentially handle same point.