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() {
|
function selectClip() {
|
||||||
var id,
|
var id = Ox.last(self.options.clips).id;
|
||||||
position = Ox.last(self.options.clips).position;
|
|
||||||
Ox.forEach(self.options.clips, function(clip, i) {
|
Ox.forEach(self.options.clips, function(clip, i) {
|
||||||
if (clip.position > self.options.position) {
|
if (clip.position > self.options.position) {
|
||||||
id = self.options.clips[i - 1].id;
|
id = self.options.clips[i - 1].id;
|
||||||
position = self.options.clips[i - 1].position;
|
|
||||||
return false; // break
|
return false; // break
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
setPosition(position);
|
|
||||||
self.options.selected = [id];
|
self.options.selected = [id];
|
||||||
Ox.print('????', self.$clipPanel.options('selected'))
|
Ox.print('????', self.$clipPanel.options('selected'))
|
||||||
self.$clipPanel.options({selected: self.options.selected});
|
self.$clipPanel.options({selected: self.options.selected});
|
||||||
|
|
Loading…
Reference in a new issue