mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-28 16:16:08 +03:00
Tweaks to minLevel DZI patch
This commit is contained in:
parent
452e50c8d8
commit
071b865765
@ -19,6 +19,7 @@ OPENSEADRAGON CHANGELOG
|
|||||||
* You can now prevent canvas-drag events on the navigator (#1484)
|
* You can now prevent canvas-drag events on the navigator (#1484)
|
||||||
* You can now prevent canvas-click events on the navigator (#1416)
|
* You can now prevent canvas-click events on the navigator (#1416)
|
||||||
* The navigator can now be restricted to just horizontal or just vertical panning (#1416)
|
* The navigator can now be restricted to just horizontal or just vertical panning (#1416)
|
||||||
|
* Fixed DziTileSource so it doesn't load levels above maxLevel or below minLevel, if set (#1492)
|
||||||
|
|
||||||
2.3.1:
|
2.3.1:
|
||||||
|
|
||||||
|
@ -972,7 +972,7 @@ $.extend($.TiledImage.prototype, $.EventSource.prototype, /** @lends OpenSeadrag
|
|||||||
|
|
||||||
// Calculations for the interval of levels to draw
|
// Calculations for the interval of levels to draw
|
||||||
// can return invalid intervals; fix that here if necessary
|
// can return invalid intervals; fix that here if necessary
|
||||||
highestLevel = Math.max(highestLevel, this.source.minLevel);
|
highestLevel = Math.max(highestLevel, this.source.minLevel || 0);
|
||||||
lowestLevel = Math.min(lowestLevel, highestLevel);
|
lowestLevel = Math.min(lowestLevel, highestLevel);
|
||||||
return {
|
return {
|
||||||
lowestLevel: lowestLevel,
|
lowestLevel: lowestLevel,
|
||||||
|
Loading…
Reference in New Issue
Block a user