1j01 / jspaint

🎨 Classic MS Paint, REVIVED + ✨Extras
https://jspaint.app/about
MIT License
7.18k stars 560 forks source link

Copy/cut/paste don't work on my ipad. #241

Open soup244 opened 2 years ago

soup244 commented 2 years ago

I’m using an ipad 7, and the copy and paste dont work. When i cut or copy, an error throws this up: write@[native code] @https://jspaint.app/src/functions.js:1700:30 sanity_check_blob@https://jspaint.app/src/functions.js:2599:17 @https://jspaint.app/src/functions.js:1699:21

Or this when pasting: getType@[native code] @https://jspaint.app/src/functions.js:1756:47 asyncFunctionResume@[native code] @[native code] promiseReactionJobWithoutPromise@[native code]

Is this a bug or am i doing something wrong?

Soup

1j01 commented 2 years ago

Those look like stack traces without error messages. Are there messages alongside those? I would say this is a bug, at least for the message being unclear. Clipboard access might not be supported on the iPad. As a workaround perhaps you can use Copy To and Paste From? But that's probably too cumbersome to be worth your time.

soup244 commented 2 years ago

It either says “Failed to copy to the Clipboard.” Or Failed to read from the Clipboard.”

1j01 commented 2 years ago

Oh, I was expecting a message in the details, aside from the stack trace, but I think that was a problem that I fixed already which is why I was confused — not the clipboard problem, but the error message not being shown in the details — I have a lot of changes waiting to be released.

Anyways, it looks like you'll need at least iPadOS 13.4 for this to have a chance of working. What OS version are you on?

soup244 commented 2 years ago

I’m on iPadOS 15.0.1. I made a screenshot of what happens when I cut: 3D83802E-0860-438F-9DDE-134E35591822

ShantanuBhatia commented 2 years ago

Facing the same issue on Safari on iOS 15.4.1 - I'm gonna try looking into this one if that's alright? I use JSPaint on a near-daily basis and I'd be happy to contribute.

1j01 commented 1 year ago

@ShantanuBhatia Oh, please do investigate this if you're up for it.

AlexHRodrii commented 1 year ago

I'm going to try to fix it