mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-25 14:46:10 +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;
|
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user