mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-25 14:46:10 +03:00
Merge pull request #1201 from vin-dev/master
Add timeout for navigator item index change handler. Fix for issue# 1126
This commit is contained in:
commit
d815b5da64
@ -231,8 +231,10 @@ $.Navigator = function( options ){
|
|||||||
});
|
});
|
||||||
|
|
||||||
viewer.world.addHandler("item-index-change", function(event) {
|
viewer.world.addHandler("item-index-change", function(event) {
|
||||||
var item = _this.world.getItemAt(event.previousIndex);
|
window.setTimeout(function(){
|
||||||
_this.world.setItemIndex(item, event.newIndex);
|
var item = _this.world.getItemAt(event.previousIndex);
|
||||||
|
_this.world.setItemIndex(item, event.newIndex);
|
||||||
|
}, 1);
|
||||||
});
|
});
|
||||||
|
|
||||||
viewer.world.addHandler("remove-item", function(event) {
|
viewer.world.addHandler("remove-item", function(event) {
|
||||||
|
Loading…
Reference in New Issue
Block a user