From 7ba516b30aa2db16e070cec76967110488d784b7 Mon Sep 17 00:00:00 2001 From: Ian Gilman Date: Tue, 27 Mar 2018 09:48:18 -0700 Subject: [PATCH] Fixed issue with square tile code on IE --- src/tilesource.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/tilesource.js b/src/tilesource.js index be5c1d5e..cc48aeec 100644 --- a/src/tilesource.js +++ b/src/tilesource.js @@ -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 );