-
-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Warning in browser console: Canvas2D: Multiple readback operations using getImageData are faster with the willReadFrequently attribute set to true
when calling toDataURL
#105
Comments
We might need to add a prop for the canvas's |
Hello, I have the same problem. |
I don't believe there's a workaround for this as the In any case, this is a warning from a more recent browser feature and can safely be ignored. |
Does this error cause any performance issue? since you haven't added the feature yet shall I ignore this error at the moment? @agilgur5 |
It's not an error, it's a warning, so by definition you can ignore it. And the warning is about a newer browser feature that did not exist until years after this library was created. It worked fine without the feature and will continue to work fine without it. Enabling it for some use-cases will allow for a performance optimization (which is what this issue is labeled as). But again, it works fine without this. |
Looks like upstream enabled the same: szimek/signature_pad#761 (comment) |
@agilgur5 refer to Would you update the react-signature-canvas package to be compatible with the new version of thank you very much |
I'm very aware of that, that's why this issue is still open, and not closed.
There is already a separate issue(s) for that, see #73 (comment). |
I get this warning in the browser console when calling
toDataURL
:Any ideas how to correctly configure the canvas to set
{ willReadFrequently: true }
?The text was updated successfully, but these errors were encountered: