diff --git a/src/viewport.js b/src/viewport.js index b6b57e27..ff91ad29 100644 --- a/src/viewport.js +++ b/src/viewport.js @@ -596,8 +596,8 @@ $.Viewport.prototype = /** @lends OpenSeadragon.Viewport.prototype */{ return this.zoomTo(newZoom, null, true); } - if (Math.abs(newZoom - oldZoom) < 0.00000000001 || - Math.abs(newBounds.width - oldBounds.width) < 0.00000000001) { + if (Math.abs(newZoom - oldZoom) < 0.00000001 || + Math.abs(newBounds.width - oldBounds.width) < 0.00000001) { return this.panTo( center, immediately ); } diff --git a/test/demo/m2/index.html b/test/demo/m2/index.html index 70c4c486..ca46fedd 100644 --- a/test/demo/m2/index.html +++ b/test/demo/m2/index.html @@ -7,7 +7,7 @@ - +