RESOLVED FIXED228774
[iOS 15] "Look Up" action is sometimes missing after force pressing images
https://bugs.webkit.org/show_bug.cgi?id=228774
Summary [iOS 15] "Look Up" action is sometimes missing after force pressing images
Wenson Hsieh
Reported 2021-08-04 08:02:34 PDT
Attachments
Patch (3.06 KB, patch)
2021-08-04 08:29 PDT, Wenson Hsieh
hi: review+
Patch for landing (3.10 KB, patch)
2021-08-04 11:09 PDT, Wenson Hsieh
no flags
Wenson Hsieh
Comment 1 2021-08-04 08:29:52 PDT
Devin Rousso
Comment 2 2021-08-04 10:54:21 PDT
Comment on attachment 434905 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=434905&action=review r=me > Source/WebKit/UIProcess/ios/WKImageAnalysisGestureRecognizer.mm:68 > + if (touches.anyObject.force < forceThreshold) Is every `UITouch` guaranteed to have the same `force`? Or do we need to iterate this?
Wenson Hsieh
Comment 3 2021-08-04 10:58:01 PDT
Comment on attachment 434905 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=434905&action=review Thanks for the review! >> Source/WebKit/UIProcess/ios/WKImageAnalysisGestureRecognizer.mm:68 >> + if (touches.anyObject.force < forceThreshold) > > Is every `UITouch` guaranteed to have the same `force`? Or do we need to iterate this? Each UITouch will have the force corresponding to that touch — I don't think it will be an issue here though, since the context menu is only triggered if there's one active touch. That said, I suppose I could add an early return if `touches.count > 1`.
Wenson Hsieh
Comment 4 2021-08-04 11:09:44 PDT
Created attachment 434914 [details] Patch for landing
EWS
Comment 5 2021-08-04 11:44:27 PDT
Committed r280647 (240258@main): <https://commits.webkit.org/240258@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 434914 [details].
Note You need to log in before you can comment on or make changes to this bug.