Hacker News new | ask | show | jobs
by Alex3917 3736 days 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.
2 comments

Can you file a bug with a specific example or two? http://bugs.webkit.org/
I 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.

If you throw me a bug number (here or privately) I'll take a look.
OK the bug number is 25465034. Thanks!
That 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.chromium.org/p/chromium/issues/detail?id=346613

I've been dealing with this stuff for the last week.

Edit: added webkit reference