mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-22 13:16:10 +03:00
WIP: _calculateCanvasSize outputs are floored, but imageSmoothingEnabled is still initalized on resize
This commit is contained in:
parent
869a3f6a13
commit
578ff36a06
@ -686,8 +686,9 @@ $.Drawer.prototype = {
|
|||||||
var pixelDensityRatio = $.pixelDensityRatio;
|
var pixelDensityRatio = $.pixelDensityRatio;
|
||||||
var viewportSize = this.viewport.getContainerSize();
|
var viewportSize = this.viewport.getContainerSize();
|
||||||
return {
|
return {
|
||||||
x: viewportSize.x * pixelDensityRatio,
|
// canvas width and height are integers
|
||||||
y: viewportSize.y * pixelDensityRatio
|
x: Math.floor(viewportSize.x * pixelDensityRatio),
|
||||||
|
y: Math.floor(viewportSize.y * pixelDensityRatio)
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user