Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/roundcube/roundcubemail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/skins
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2016-10-30 20:58:44 +0300
committerAleksander Machniak <alec@alec.pl>2016-10-30 20:58:44 +0300
commit04f2d139bf3f1697647e18d9e119882b485f5702 (patch)
tree7b863738a60267c01af5bba89b999274a1eafacf /skins
parent6886a4de3f32f4bbbba0b195618f034af0d1dcaf (diff)
Fix splitter dragging over messages list
Mouseup event on messages list is not propagated to document. We workaround this by setting drag_active flag, in such case the event will be propagated.
Diffstat (limited to 'skins')
-rw-r--r--skins/larry/ui.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/skins/larry/ui.js b/skins/larry/ui.js
index 1fa4cdefd..e3d1cac91 100644
--- a/skins/larry/ui.js
+++ b/skins/larry/ui.js
@@ -1371,6 +1371,10 @@ function rcube_splitter(p)
// start listening to mousemove events
$(document).on('mousemove.' + this.id, onDrag).on('mouseup.' + this.id, onDragStop);
+ // hack messages list so it will propagate the mouseup event over the list
+ if (rcmail.message_list)
+ rcmail.message_list.drag_active = true;
+
// enable dragging above iframes
$('iframe').each(function(i, elem) {
$('<div>')
@@ -1449,6 +1453,9 @@ function rcube_splitter(p)
$(document).off('.' + me.id);
me.drag_active = false;
+ if (rcmail.message_list)
+ rcmail.message_list.drag_active = false;
+
// remove temp divs
$('div.iframe-splitter-fix').remove();