This commit is contained in:
Manav Rathi
2025-03-05 11:19:12 +05:30
parent 81e3593b74
commit 7d8683640b
2 changed files with 24 additions and 0 deletions

View File

@@ -435,6 +435,7 @@ const FileViewer: React.FC<FileViewerProps> = ({
// Not memoized since it uses the frequently changing `activeAnnotatedFile`.
const handleCopyImage = () => {
handleMoreMenuClose();
// Safari does not copy if we do not call `navigator.clipboard.write`
// synchronously within the click event handler, but it does supports
// passing a promise in lieu of the blob.