AnnotationPanel: add doubleclick-on-title-bar-to-scroll-up functionality

This commit is contained in:
rlx 2013-07-08 10:52:11 +00:00
parent 14f63cdfc3
commit cc1cede9bc

View file

@ -100,7 +100,14 @@ Ox.AnnotationPanel = function(options, self) {
self.$menubar = Ox.Bar({
size: 16
})
.addClass('OxVideoPlayer');
.addClass('OxVideoPlayer')
.bindEvent({
doubleclick: function(e) {
if ($(e.target).is('.OxBar')) {
self.$folders.animate({scrollTop: 0}, 250);
}
}
});
self.$folders = Ox.Element().css({overflowY: 'scroll'});
self.$folder = [];