mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-25 06:36:11 +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 viewportSize = this.viewport.getContainerSize();
|
||||
return {
|
||||
x: viewportSize.x * pixelDensityRatio,
|
||||
y: viewportSize.y * pixelDensityRatio
|
||||
// canvas width and height are integers
|
||||
x: Math.floor(viewportSize.x * pixelDensityRatio),
|
||||
y: Math.floor(viewportSize.y * pixelDensityRatio)
|
||||
};
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user