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