mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-23 05:36:09 +03:00
Only disable the previous button if the navPrevNextWrap option is not set.
This commit is contained in:
parent
e5643bf22f
commit
ade93ffc5e
@ -346,10 +346,6 @@ $.Viewer = function( options ) {
|
|||||||
beginControlsAutoHide( _this );
|
beginControlsAutoHide( _this );
|
||||||
} ); // initial fade out
|
} ); // initial fade out
|
||||||
|
|
||||||
if(this.navPrevNextWrap){
|
|
||||||
this.previousButton.enable();
|
|
||||||
}
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
$.extend( $.Viewer.prototype, $.EventHandler.prototype, $.ControlDock.prototype, {
|
$.extend( $.Viewer.prototype, $.EventHandler.prototype, $.ControlDock.prototype, {
|
||||||
@ -855,7 +851,9 @@ $.extend( $.Viewer.prototype, $.EventHandler.prototype, $.ControlDock.prototype,
|
|||||||
onBlur: onBlurHandler
|
onBlur: onBlurHandler
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if( !this.navPrevNextWrap ){
|
||||||
this.previousButton.disable();
|
this.previousButton.disable();
|
||||||
|
}
|
||||||
|
|
||||||
if( useGroup ){
|
if( useGroup ){
|
||||||
this.paging = new $.ButtonGroup({
|
this.paging = new $.ButtonGroup({
|
||||||
|
Loading…
Reference in New Issue
Block a user