RESOLVED FIXED 202006
[iPadOS] The second click event is missing on double tap when dblclick handler is not present
https://bugs.webkit.org/show_bug.cgi?id=202006
Summary [iPadOS] The second click event is missing on double tap when dblclick handle...
zalan
Reported 2019-09-19 14:21:43 PDT
Attachments
Patch (11.92 KB, patch)
2019-09-19 14:59 PDT, zalan
no flags
Patch (37.55 KB, patch)
2019-09-20 14:48 PDT, zalan
no flags
Patch (21.57 KB, patch)
2019-09-23 11:34 PDT, zalan
no flags
Patch (22.30 KB, patch)
2019-09-24 12:33 PDT, zalan
no flags
zalan
Comment 1 2019-09-19 14:59:44 PDT
Wenson Hsieh
Comment 2 2019-09-19 15:02:36 PDT
Comment on attachment 379165 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=379165&action=review > Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm:2143 > + return _positionInformation.nodeAtPositionHasDoubleClickHandler; What is responsible for ensuring that position information is up to date here?
zalan
Comment 3 2019-09-19 15:37:43 PDT
Comment on attachment 379165 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=379165&action=review >> Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm:2143 >> + return _positionInformation.nodeAtPositionHasDoubleClickHandler; > > What is responsible for ensuring that position information is up to date here? I was curious about that too and was going to figure that out myself! I had tested a few dynamic cases (add/remove eventlisteners) and they all worked fine so I thought I might just upload the patch first.
Wenson Hsieh
Comment 4 2019-09-19 16:41:32 PDT
(In reply to zalan from comment #3) > Comment on attachment 379165 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=379165&action=review > > >> Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm:2143 > >> + return _positionInformation.nodeAtPositionHasDoubleClickHandler; > > > > What is responsible for ensuring that position information is up to date here? > > I was curious about that too and was going to figure that out myself! I had > tested a few dynamic cases (add/remove eventlisteners) and they all worked > fine so I thought I might just upload the patch first. It would be worth double checking why this works. I suspect it's using position information state from web touch and/or text interaction gestures.
zalan
Comment 5 2019-09-19 16:43:05 PDT
(In reply to Wenson Hsieh from comment #4) > (In reply to zalan from comment #3) > > Comment on attachment 379165 [details] > > Patch > > > > View in context: > > https://bugs.webkit.org/attachment.cgi?id=379165&action=review > > > > >> Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm:2143 > > >> + return _positionInformation.nodeAtPositionHasDoubleClickHandler; > > > > > > What is responsible for ensuring that position information is up to date here? > > > > I was curious about that too and was going to figure that out myself! I had > > tested a few dynamic cases (add/remove eventlisteners) and they all worked > > fine so I thought I might just upload the patch first. > > It would be worth double checking why this works. I suspect it's using > position information state from web touch and/or text interaction gestures. Absolutely. I was going to check if I need to trigger an update on eventlistner (de)registrations.
zalan
Comment 6 2019-09-20 14:48:15 PDT
zalan
Comment 7 2019-09-23 11:34:47 PDT
Wenson Hsieh
Comment 8 2019-09-23 14:45:35 PDT
Comment on attachment 379381 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=379381&action=review > Source/WebKit/Shared/ios/InteractionInformationRequest.cpp:89 > - return (other.point - point).diagonalLengthSquared() <= 4; > + return (other.point - point).diagonalLengthSquared() <= radius * radius; Nit - it might be cleaner to just share code with InteractionInformationRequest::isValidForRequest above, by moving the distance check into InteractionInformationRequest::isValidForRequest and treating isValidForRequest as the case where radius == 0.
zalan
Comment 9 2019-09-24 12:33:36 PDT
WebKit Commit Bot
Comment 10 2019-09-24 13:06:55 PDT
Comment on attachment 379468 [details] Patch Clearing flags on attachment: 379468 Committed r250315: <https://trac.webkit.org/changeset/250315>
WebKit Commit Bot
Comment 11 2019-09-24 13:06:56 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.