Merge pull request #995 from chrishonselaar/patch-1

this.tileSize undefined in this scope
This commit is contained in:
Ian Gilman 2016-09-01 09:56:09 -07:00 committed by GitHub
commit bde239d389

View File

@ -197,10 +197,10 @@ $.extend( $.DziTileSource.prototype, $.TileSource.prototype, /** @lends OpenSead
xMax = xMin + rect.width * scale; xMax = xMin + rect.width * scale;
yMax = yMin + rect.height * scale; yMax = yMin + rect.height * scale;
xMin = Math.floor( xMin / this.tileSize ); xMin = Math.floor( xMin / this._tileWidth );
yMin = Math.floor( yMin / this.tileSize ); yMin = Math.floor( yMin / this._tileWidth );
xMax = Math.ceil( xMax / this.tileSize ); xMax = Math.ceil( xMax / this._tileWidth );
yMax = Math.ceil( yMax / this.tileSize ); yMax = Math.ceil( yMax / this._tileWidth );
if ( xMin <= x && x < xMax && yMin <= y && y < yMax ) { if ( xMin <= x && x < xMax && yMin <= y && y < yMax ) {
return true; return true;