avoid loop while selecting multiple annotations

This commit is contained in:
j 2025-01-25 10:25:06 +05:30
parent c391d7f4fa
commit d7fbea4a20

View file

@ -202,6 +202,11 @@ pandora.ui.item = function() {
}
});
}
// avoid loop while selecting multiple annotations
if (options.selected == '' && Ox.isArray(pandora.$ui[pandora.user.ui.itemView].options('selected'))) {
delete options.selected
}
console.log("!! video points update", pandora.user.ui.itemView, options)
pandora.$ui[pandora.user.ui.itemView].options(options);
}
}