mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-02-16 14:53:14 +03:00
Merge pull request #1648 from bandicoot-imaging-sciences/nn-interp2
Fixed: window resize was resetting image smoothing.
This commit is contained in:
commit
d23ee3479b
@ -253,12 +253,13 @@ $.Drawer.prototype = {
|
|||||||
this.canvas.height != viewportSize.y ) {
|
this.canvas.height != viewportSize.y ) {
|
||||||
this.canvas.width = viewportSize.x;
|
this.canvas.width = viewportSize.x;
|
||||||
this.canvas.height = viewportSize.y;
|
this.canvas.height = viewportSize.y;
|
||||||
|
this._updateImageSmoothingEnabled(this.context);
|
||||||
if ( this.sketchCanvas !== null ) {
|
if ( this.sketchCanvas !== null ) {
|
||||||
var sketchCanvasSize = this._calculateSketchCanvasSize();
|
var sketchCanvasSize = this._calculateSketchCanvasSize();
|
||||||
this.sketchCanvas.width = sketchCanvasSize.x;
|
this.sketchCanvas.width = sketchCanvasSize.x;
|
||||||
this.sketchCanvas.height = sketchCanvasSize.y;
|
this.sketchCanvas.height = sketchCanvasSize.y;
|
||||||
|
this._updateImageSmoothingEnabled(this.sketchContext);
|
||||||
}
|
}
|
||||||
this._updateImageSmoothingEnabled(this.context);
|
|
||||||
}
|
}
|
||||||
this._clear();
|
this._clear();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user