video edit panel: don't set in and out when selecting clip
This commit is contained in:
parent
196cb0f45f
commit
eaa23ca4c8
1 changed files with 3 additions and 11 deletions
|
@ -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});
|
||||
|
|
Loading…
Reference in a new issue