video edit panel: don't set position when selecting clip

This commit is contained in:
rlx 2013-07-18 14:07:46 +00:00
parent eaa23ca4c8
commit 594a42fb11

View file

@ -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});