AnnotationPanel: add doubleclick-on-title-bar-to-scroll-up functionality
This commit is contained in:
parent
14f63cdfc3
commit
cc1cede9bc
1 changed files with 8 additions and 1 deletions
|
@ -100,7 +100,14 @@ Ox.AnnotationPanel = function(options, self) {
|
||||||
self.$menubar = Ox.Bar({
|
self.$menubar = Ox.Bar({
|
||||||
size: 16
|
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.$folders = Ox.Element().css({overflowY: 'scroll'});
|
||||||
self.$folder = [];
|
self.$folder = [];
|
||||||
|
|
Loading…
Reference in a new issue