From 61c458b0850b14ddbf4fb61b1a77378451d802e7 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Tue, 2 Jan 2018 13:15:29 +0100 Subject: [PATCH] Disable dragging also on list widgets for small devices --- skins/elastic/ui.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/skins/elastic/ui.js b/skins/elastic/ui.js index 0ce3151cc..1c661438d 100644 --- a/skins/elastic/ui.js +++ b/skins/elastic/ui.js @@ -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; + } } });