mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-25 06:36:11 +03:00
imageSmoothingEnabled is being set to correct value after resize
This commit is contained in:
parent
578ff36a06
commit
1e538e665d
@ -247,6 +247,7 @@ $.Drawer.prototype = {
|
|||||||
var viewportSize = this._calculateCanvasSize();
|
var viewportSize = this._calculateCanvasSize();
|
||||||
if( this.canvas.width != viewportSize.x ||
|
if( this.canvas.width != viewportSize.x ||
|
||||||
this.canvas.height != viewportSize.y ) {
|
this.canvas.height != viewportSize.y ) {
|
||||||
|
var imageSmoothingEnabled = this.canvas.getContext('2d').imageSmoothingEnabled;
|
||||||
this.canvas.width = viewportSize.x;
|
this.canvas.width = viewportSize.x;
|
||||||
this.canvas.height = viewportSize.y;
|
this.canvas.height = viewportSize.y;
|
||||||
if ( this.sketchCanvas !== null ) {
|
if ( this.sketchCanvas !== null ) {
|
||||||
@ -254,6 +255,7 @@ $.Drawer.prototype = {
|
|||||||
this.sketchCanvas.width = sketchCanvasSize.x;
|
this.sketchCanvas.width = sketchCanvasSize.x;
|
||||||
this.sketchCanvas.height = sketchCanvasSize.y;
|
this.sketchCanvas.height = sketchCanvasSize.y;
|
||||||
}
|
}
|
||||||
|
this.setImageSmoothingEnabled(imageSmoothingEnabled);
|
||||||
}
|
}
|
||||||
this._clear();
|
this._clear();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user