[Webkit-unassigned] [Bug 240011] Double tap to hold on a Canvas tag to selected other text
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue May 3 18:32:12 PDT 2022
https://bugs.webkit.org/show_bug.cgi?id=240011
--- Comment #2 from Wenson Hsieh <wenson_hsieh at apple.com> ---
I think we can fix this by relaxing this check:
```
(in WKContentViewInteraction.mm:)
if (gesture == UIWKGestureLoupe && _positionInformation.selectability == WebKit::InteractionInformationAtPosition::Selectability::UnselectableDueToUserSelectNone)
return NO;
```
...to something like this instead:
```
(in WKContentViewInteraction.mm:)
if (gesture != UIWKGestureOneFingerTap && _positionInformation.selectability == WebKit::InteractionInformationAtPosition::Selectability::UnselectableDueToUserSelectNone)
return NO;
```
I _suspect_ the choice to limit this to only the Loupe gesture was made to (1) limit risk, and (2) to make it so that the user can always still tap in `-webkit-user-select: none;` regions to clear an existing selection.
One workaround here would be to add active touch event listeners and prevent `touchstart` and/or `touchend`.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220504/9875c964/attachment.htm>
More information about the webkit-unassigned
mailing list