summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2013-08-14 22:32:35 +0200
committerThomas Bruederli <thomas@roundcube.net>2013-08-14 23:33:55 +0200
commitdeacf16beed87fde254a419ad10bc5d4528aaa31 (patch)
treedbc25cc54299f4d7303ac27311c9a70f63f50857
parentcd0633cf521fc9bead687b7bda63a2a281d3dc7d (diff)
Make thread toggles work on touch devices
-rw-r--r--program/js/app.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/program/js/app.js b/program/js/app.js
index 8e6a6fff3..98847ad2e 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -1733,6 +1733,14 @@ function rcube_webmail()
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 });