Fixed issue with square tile code on IE

This commit is contained in:
Ian Gilman 2018-03-27 09:48:18 -07:00
parent e5355abafe
commit 7ba516b30a

View File

@ -392,9 +392,7 @@ $.TileSource.prototype = {
sy = Math.min( sy, dimensionsScaled.y - py );
if (isSource) {
scale = 1;
px = 0;
py = 0;
return new $.Rect(0, 0, Math.floor(sx), Math.floor(sy));
}
return new $.Rect( px * scale, py * scale, sx * scale, sy * scale );