mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-22 05:06:09 +03:00
Merge pull request #995 from chrishonselaar/patch-1
this.tileSize undefined in this scope
This commit is contained in:
commit
bde239d389
@ -197,10 +197,10 @@ $.extend( $.DziTileSource.prototype, $.TileSource.prototype, /** @lends OpenSead
|
||||
xMax = xMin + rect.width * scale;
|
||||
yMax = yMin + rect.height * scale;
|
||||
|
||||
xMin = Math.floor( xMin / this.tileSize );
|
||||
yMin = Math.floor( yMin / this.tileSize );
|
||||
xMax = Math.ceil( xMax / this.tileSize );
|
||||
yMax = Math.ceil( yMax / this.tileSize );
|
||||
xMin = Math.floor( xMin / this._tileWidth );
|
||||
yMin = Math.floor( yMin / this._tileWidth );
|
||||
xMax = Math.ceil( xMax / this._tileWidth );
|
||||
yMax = Math.ceil( yMax / this._tileWidth );
|
||||
|
||||
if ( xMin <= x && x < xMax && yMin <= y && y < yMax ) {
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user