Disable dragging also on list widgets for small devices

pull/5742/merge
Aleksander Machniak 7 years ago
parent 9bc4b97071
commit 61c458b085

@ -451,8 +451,13 @@ function rcube_elastic_ui()
// https://github.com/roundcube/elastic/issues/45
// Draggable blocks scrolling on touch devices, we'll disable it there
if (touch && rcmail[list] && typeof rcmail[list].draggable == 'function') {
rcmail[list].draggable('destroy');
if (touch && rcmail[list]) {
if (typeof rcmail[list].draggable == 'function') {
rcmail[list].draggable('destroy');
}
else if (typeof rcmail[list].draggable == 'boolean') {
rcmail[list].draggable = false;
}
}
});

Loading…
Cancel
Save