mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-29 00:26:10 +03:00
Fixed: window resize was resetting image smoothing.
This commit is contained in:
parent
90f416f1b9
commit
378c2a160c
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user