Tasklist: Fix list scrolling in Elastic on touch devices

This commit is contained in:
Aleksander Machniak 2021-03-21 11:34:16 +01:00
parent 39bf64e680
commit 315c6ec7a0

View file

@ -1430,8 +1430,11 @@ function rcube_tasklist_ui(settings)
)
.attr('tabindex', '0')
.attr('aria-labelledby', label_id)
.data('id', rec.id)
.draggable({
.data('id', rec.id);
// Make the task draggable, but not in the Elastic skin on touch devices, to fix scrolling
if (!window.UI || !UI.is_touch || !window.UI.is_touch()) {
div.draggable({
revert: 'invalid',
addClasses: false,
cursorAt: { left:-10, top:12 },
@ -1442,6 +1445,7 @@ function rcube_tasklist_ui(settings)
drag: task_draggable_move,
revertDuration: 300
});
}
if (window.kolab_tags_text_block) {
var tags = rec.tags || [];