diff options
author | Aleksander Machniak <alec@alec.pl> | 2016-10-30 20:58:44 +0300 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2016-10-30 20:58:44 +0300 |
commit | 04f2d139bf3f1697647e18d9e119882b485f5702 (patch) | |
tree | 7b863738a60267c01af5bba89b999274a1eafacf /skins | |
parent | 6886a4de3f32f4bbbba0b195618f034af0d1dcaf (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.js | 7 |
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(); |