mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-22 13:16:10 +03:00
Viewer.open now honors sequence mode
This commit is contained in:
parent
f018059b60
commit
336482cd1c
@ -581,6 +581,17 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype,
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.sequenceMode && $.isArray(tileSources)) {
|
||||||
|
this.tileSources = tileSources;
|
||||||
|
this._sequenceIndex = 0;
|
||||||
|
if (tileSources.length) {
|
||||||
|
this.open(tileSources[0]);
|
||||||
|
}
|
||||||
|
|
||||||
|
this._updateSequenceButtons( this._sequenceIndex );
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!$.isArray(tileSources)) {
|
if (!$.isArray(tileSources)) {
|
||||||
tileSources = [tileSources];
|
tileSources = [tileSources];
|
||||||
}
|
}
|
||||||
|
@ -104,7 +104,7 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// this.crossTest3();
|
// this.crossTest2();
|
||||||
// this.collectionTest();
|
// this.collectionTest();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user