Skip to content
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

Chrome throws deprecation message: CanvasRenderingContext2D.webkitImageSmoothingEnabled' is deprecated. Please use 'CanvasRenderingContext2D.imageSmoothingEnabled' instead. #178

Closed
Friksel opened this issue Mar 16, 2016 · 2 comments

Comments

@Friksel
Copy link

Friksel commented Mar 16, 2016

Using two.js Chrome throws this deprecation message:

CanvasRenderingContext2D.webkitImageSmoothingEnabled' is deprecated. Please use 'CanvasRenderingContext2D.imageSmoothingEnabled' instead.

According to a thread here: fabricjs/fabric.js#2047 this message is probably not the most timeconsuming thing to leave out of (the most recent) Chrome by using this:

if (typeof(ctx.imageSmoothingEnabled) !== 'undefined') {
  ctx.imageSmoothingEnabled       = this.imageSmoothingEnabled;
  return;
}
@jonobr1
Copy link
Owner

jonobr1 commented Mar 17, 2016

Thanks for posting. This issue is fixed in the dev branch!

@jonobr1 jonobr1 closed this as completed Mar 17, 2016
@Friksel
Copy link
Author

Friksel commented Mar 26, 2016

Nice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants