From 3f20018c75efdb459ec71426063c1831940bb035 Mon Sep 17 00:00:00 2001 From: thatcher Date: Sat, 9 Feb 2013 12:21:51 -0500 Subject: [PATCH] correction for recent change which computed a highestLevel for drawer with max instead of min operation --- build.properties | 2 +- openseadragon.js | 4 ++-- src/drawer.js | 2 +- www/tilesource-collection.html | 7 ++++++- 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/build.properties b/build.properties index d629ef5c..b4fc623f 100644 --- a/build.properties +++ b/build.properties @@ -6,7 +6,7 @@ PROJECT: openseadragon BUILD_MAJOR: 0 BUILD_MINOR: 9 -BUILD_ID: 101 +BUILD_ID: 102 BUILD: ${PROJECT}.${BUILD_MAJOR}.${BUILD_MINOR}.${BUILD_ID} VERSION: ${BUILD_MAJOR}.${BUILD_MINOR}.${BUILD_ID} diff --git a/openseadragon.js b/openseadragon.js index 7bac1e01..a15c5860 100644 --- a/openseadragon.js +++ b/openseadragon.js @@ -1,7 +1,7 @@ /*globals OpenSeadragon */ /** - * @version OpenSeadragon 0.9.101 + * @version OpenSeadragon 0.9.102 * * @fileOverview *

@@ -8840,7 +8840,7 @@ function updateViewport( drawer ) { Math.log( 2 ) ) ), - highestLevel = Math.max( + highestLevel = Math.min( Math.abs(drawer.source.maxLevel), Math.abs(Math.floor( Math.log( zeroRatioC / drawer.minPixelRatio ) / diff --git a/src/drawer.js b/src/drawer.js index 99f7bcd1..3ebc9083 100644 --- a/src/drawer.js +++ b/src/drawer.js @@ -365,7 +365,7 @@ function updateViewport( drawer ) { Math.log( 2 ) ) ), - highestLevel = Math.max( + highestLevel = Math.min( Math.abs(drawer.source.maxLevel), Math.abs(Math.floor( Math.log( zeroRatioC / drawer.minPixelRatio ) / diff --git a/www/tilesource-collection.html b/www/tilesource-collection.html index 2425df13..db4c36cc 100644 --- a/www/tilesource-collection.html +++ b/www/tilesource-collection.html @@ -100,6 +100,7 @@ OpenSeadragon({ ... }); +