add doubleclick-to-scroll-up to editor menubar

This commit is contained in:
rlx 2013-07-09 18:30:44 +00:00
parent 5c655f3337
commit 675e45df18

View file

@ -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) {