video edit panel: don't set in and out when selecting clip

This commit is contained in:
rlx 2013-07-18 13:58:49 +00:00
parent 196cb0f45f
commit eaa23ca4c8

View file

@ -464,23 +464,15 @@ Ox.VideoEditPanel = function(options, self) {
function selectClip() { function selectClip() {
var id, var id,
points = { position = Ox.last(self.options.clips).position;
'in': Ox.last(self.options.clips).position,
out: self.options.duration
};
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;
points = { position = self.options.clips[i - 1].position;
'in': self.options.clips[i - 1].position,
out: self.options.clips[i].position
};
return false; // break return false; // break
} }
}); });
setPosition(points['in']); setPosition(position);
setPoint('in', points['in']);
setPoint('out', points.out);
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});