avoid double annotation on blur, fixes #3196

This commit is contained in:
j 2018-12-10 16:18:17 +01:00
parent cbd948740a
commit c821817c38

View file

@ -327,6 +327,7 @@ Ox.AnnotationFolder = function(options, self) {
blur: function(data) {
if (data && data.id[0] == '_') {
changeAnnotation(data);
that.triggerEvent('blur');
} else {
// the video editor will, if it has not received focus,
// call blurItem
@ -410,8 +411,10 @@ Ox.AnnotationFolder = function(options, self) {
function changeAnnotation(data) {
var item = Ox.getObjectById(self.options.items, data.id);
item.value = data.value;
that.triggerEvent('change', item);
if (item.value != data.value) {
item.value = data.value;
that.triggerEvent('change', item);
}
}
function crossesPoint() {