video edit panel: don't set position when selecting clip
This commit is contained in:
parent
eaa23ca4c8
commit
594a42fb11
1 changed files with 1 additions and 4 deletions
|
@ -463,16 +463,13 @@ Ox.VideoEditPanel = function(options, self) {
|
|||
}
|
||||
|
||||
function selectClip() {
|
||||
var id,
|
||||
position = Ox.last(self.options.clips).position;
|
||||
var id = Ox.last(self.options.clips).id;
|
||||
Ox.forEach(self.options.clips, function(clip, i) {
|
||||
if (clip.position > self.options.position) {
|
||||
id = self.options.clips[i - 1].id;
|
||||
position = self.options.clips[i - 1].position;
|
||||
return false; // break
|
||||
}
|
||||
});
|
||||
setPosition(position);
|
||||
self.options.selected = [id];
|
||||
Ox.print('????', self.$clipPanel.options('selected'))
|
||||
self.$clipPanel.options({selected: self.options.selected});
|
||||
|
|
Loading…
Reference in a new issue