From cc1cede9bc29bc062c5edf7e84c2c72018408038 Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Mon, 8 Jul 2013 10:52:11 +0000 Subject: [PATCH] AnnotationPanel: add doubleclick-on-title-bar-to-scroll-up functionality --- source/Ox.UI/js/Video/AnnotationPanel.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/source/Ox.UI/js/Video/AnnotationPanel.js b/source/Ox.UI/js/Video/AnnotationPanel.js index ec6ab29f..033af34b 100644 --- a/source/Ox.UI/js/Video/AnnotationPanel.js +++ b/source/Ox.UI/js/Video/AnnotationPanel.js @@ -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 = [];