4 ms·
Unfortunately as far as I know the text selection API is still broken on mobile Safari. At least as of a few weeks ago the JS events associated with force touch
by Alex3917 11y ago
Unfortunately as far as I know the text selection API is still broken on mobile Safari. At least as of a few weeks ago the JS events associated with force touch seem to randomly wipe out the text selection, so even if you can now theoretically copy stuff to the clipboard it's largely irrelevant if users can't actually select text in the first place.
- om2 11y agoCan you file a bug with a specific example or two? http://bugs.webkit.org/ http://bugs.webkit.org/
- Alex3917 11y agoI think my cofounder already did, I'll check. The basic issue we were encountering is that when selecting text via force touching and then dragging the selection, the text selection object was empty. (Though you can still hit Copy in the Safari UI.) There wasn't any issue when selecting text via regular press or long press.
- agopaul 11y agoThat sucks. But (Desktop) Chrome/webkit selection has been partly broken too for a few years now. https://bugs.webkit.org/show_bug.cgi?id=66630 https://bugs.webkit.org/show_bug.cgi?id=66630 https://bugs.chromium.org/p/chromium/issues/detail?id=346613 https://bugs.chromium.org/p/chromium/issues/detail?id=346613 I've been dealing with this stuff for the last week. Edit: added webkit reference