Open Alyaron opened 3 months ago
I believe what's happening here is JS Paint is only falling back if the browser doesn't report support for the Async Clipboard API, but Safari is reporting support even though it doesn't support copying images to the clipboard, only text. (That, or else the feature is disabled as some sort of security measure.)
It probably needs to use the fall back in the case that it gets an error, not just if the browser doesn't say it supports the API.
Relevant code: https://github.com/1j01/jspaint/blob/da994966ec2231743867f232d8e1fb334071b512/src/functions.js#L2575-L2597 Related issues:
Thanks for the great project! The readme describes the following known limitation:
On Safari on macOS,
And indeed it doesn't copy anything, as the command Paste will paste whatever was in the clipboard before.
What I would have expected by reading the readme, is to still be able to copy internally to JS Paint, in order to paste to another part of the same image within JS Paint.
I saw other clipboard issues being reported, but not this one, would you be able to help me figure out if it's a bug, a limitation, or myself doing something wrong? Thanks again.