From deacf16beed87fde254a419ad10bc5d4528aaa31 Mon Sep 17 00:00:00 2001 From: Thomas Bruederli <thomas@roundcube.net> Date: Wed, 14 Aug 2013 17:33:55 -0400 Subject: [PATCH] Make thread toggles work on touch devices --- program/js/app.js | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/program/js/app.js b/program/js/app.js index 8e6a6ff..98847ad 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -1733,6 +1733,14 @@ if (!row.depth && row.has_children && (expando = document.getElementById('rcmexpando'+row.uid))) { row.expando = expando; expando.onmousedown = function(e) { return self.expand_message_row(e, uid); }; + if (bw.mobile) { + expando.addEventListener('touchend', function(e) { + if (e.changedTouches.length == 1) { + self.expand_message_row(e, uid); + return rcube_event.cancel(e); + } + }, false); + } } this.triggerEvent('insertrow', { uid:uid, row:row }); -- Gitblit v1.9.1