summaryrefslogtreecommitdiff
path: root/program/js
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 22:32:35 +0200
commit5793e7f81747714e0ed6cc7acff1e54c91c57136 (patch)
tree8179553455148ed21e11a77954a2351d2224dc72 /program/js
parent4287c9a2f9dfd14c9d5e29388059bdeed8bc6e85 (diff)
Make thread toggles work on touch devices
Diffstat (limited to 'program/js')
-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 2a4493d01..78ac4c675 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -1731,6 +1731,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 });