mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-22 05:06:09 +03:00
Fix incorrect call to getTileWidth and getTileHeight in getTileAtPoint
This commit is contained in:
parent
c59a2be322
commit
e2c43d64db
@ -353,8 +353,8 @@ $.TileSource.prototype = {
|
||||
var pixelX = point.x * widthScaled;
|
||||
var pixelY = point.y * widthScaled;
|
||||
|
||||
var x = Math.floor(pixelX / this.getTileWidth());
|
||||
var y = Math.floor(pixelY / this.getTileHeight());
|
||||
var x = Math.floor(pixelX / this.getTileWidth(level));
|
||||
var y = Math.floor(pixelY / this.getTileHeight(level));
|
||||
|
||||
return new $.Point(x, y);
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user