move to annotation in point on selecting annotation in edit, fixes #3108

This commit is contained in:
j 2018-03-16 13:10:30 +05:30
parent a7d70c15ea
commit e3fe300cb7

View file

@ -330,6 +330,9 @@ pandora.ui.editPanel = function(isEmbed) {
select: function(data) {
pandora.UI.set({editSelection: data.ids});
},
selectannotation: function(data) {
that.options({position: data['in']})
},
sort: function(data) {
pandora.UI.set({editSort: data});
sortClips(updateClips);
@ -542,6 +545,7 @@ pandora.ui.editPanel = function(isEmbed) {
items: Ox.flatten(clips.map(function(clip) {
return clip.layers[layer.id].map(function(annotation) {
var a = Ox.clone(annotation);
a['id'] = clip['id'] + '/' + a['id'];
a['in'] = Math.max(
clip['position'],
a['in'] - clip['in'] + clip['position']