From 675e45df183223bf3cc3430787eb633e9252c459 Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Tue, 9 Jul 2013 18:30:44 +0000 Subject: [PATCH] add doubleclick-to-scroll-up to editor menubar --- source/Ox.UI/js/Video/VideoEditor.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/source/Ox.UI/js/Video/VideoEditor.js b/source/Ox.UI/js/Video/VideoEditor.js index 6caee7d0..6ef43c14 100644 --- a/source/Ox.UI/js/Video/VideoEditor.js +++ b/source/Ox.UI/js/Video/VideoEditor.js @@ -441,7 +441,14 @@ Ox.VideoEditor = function(options, self) { self.$menubar = Ox.Bar({ size: 16 }) - .addClass('OxVideoPlayer'); + .addClass('OxVideoPlayer') + .bindEvent({ + doubleclick: function(e) { + if ($(e.target).is('.OxBar')) { + self.$editor.animate({scrollTop: 0}, 250); + } + } + }); self.resolutions = []; Ox.forEach(self.options.video, function(url, resolution) {