diff --git a/changelog.txt b/changelog.txt index 0e713a28..2e4d94a3 100644 --- a/changelog.txt +++ b/changelog.txt @@ -3,6 +3,8 @@ OPENSEADRAGON CHANGELOG 0.9.129: (In Progress) +* Fixed an error when using navPrevNextWrap on single images (#135) + 0.9.128: * The navigator is now off by default (#102) diff --git a/src/viewer.js b/src/viewer.js index 35ee5e30..be97aad6 100644 --- a/src/viewer.js +++ b/src/viewer.js @@ -347,10 +347,6 @@ $.Viewer = function( options ) { beginControlsAutoHide( _this ); } ); // initial fade out - if(this.navPrevNextWrap){ - this.previousButton.enable(); - } - }; $.extend( $.Viewer.prototype, $.EventHandler.prototype, $.ControlDock.prototype, { @@ -860,7 +856,9 @@ $.extend( $.Viewer.prototype, $.EventHandler.prototype, $.ControlDock.prototype, onBlur: onBlurHandler }); - this.previousButton.disable(); + if( !this.navPrevNextWrap ){ + this.previousButton.disable(); + } if( useGroup ){ this.paging = new $.ButtonGroup({