Merge pull request #1648 from bandicoot-imaging-sciences/nn-interp2

Fixed: window resize was resetting image smoothing.
This commit is contained in:
Ian Gilman 2019-04-19 10:11:05 -07:00 committed by GitHub
commit d23ee3479b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -253,12 +253,13 @@ $.Drawer.prototype = {
this.canvas.height != viewportSize.y ) {
this.canvas.width = viewportSize.x;
this.canvas.height = viewportSize.y;
this._updateImageSmoothingEnabled(this.context);
if ( this.sketchCanvas !== null ) {
var sketchCanvasSize = this._calculateSketchCanvasSize();
this.sketchCanvas.width = sketchCanvasSize.x;
this.sketchCanvas.height = sketchCanvasSize.y;
this._updateImageSmoothingEnabled(this.sketchContext);
}
this._updateImageSmoothingEnabled(this.context);
}
this._clear();
}