From 594a42fb11297bfbe3461ea41fd66a9f0a67b985 Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Thu, 18 Jul 2013 14:07:46 +0000 Subject: [PATCH] video edit panel: don't set position when selecting clip --- source/Ox.UI/js/Video/VideoEditPanel.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/source/Ox.UI/js/Video/VideoEditPanel.js b/source/Ox.UI/js/Video/VideoEditPanel.js index d0258cd3..84415132 100644 --- a/source/Ox.UI/js/Video/VideoEditPanel.js +++ b/source/Ox.UI/js/Video/VideoEditPanel.js @@ -463,16 +463,13 @@ Ox.VideoEditPanel = function(options, self) { } function selectClip() { - var id, - position = Ox.last(self.options.clips).position; + var id = Ox.last(self.options.clips).id; Ox.forEach(self.options.clips, function(clip, i) { if (clip.position > self.options.position) { id = self.options.clips[i - 1].id; - position = self.options.clips[i - 1].position; return false; // break } }); - setPosition(position); self.options.selected = [id]; Ox.print('????', self.$clipPanel.options('selected')) self.$clipPanel.options({selected: self.options.selected});