summaryrefslogtreecommitdiff
path: root/program/js/common.js
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2010-05-28 10:52:20 +0000
committerthomascube <thomas@roundcube.net>2010-05-28 10:52:20 +0000
commit8ef2f3c5cfa88398266179905c08d188c1082ccd (patch)
treef2acd9848a68241d445b7017b2fbae2718a27dc9 /program/js/common.js
parentb231f68ba2a6adf7b63ce150ebe0cfcab4be90c0 (diff)
Make drag&drop work on iPads
Diffstat (limited to 'program/js/common.js')
-rw-r--r--program/js/common.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/program/js/common.js b/program/js/common.js
index 3defb6fb0..4a2a41cda 100644
--- a/program/js/common.js
+++ b/program/js/common.js
@@ -270,6 +270,11 @@ cancel: function(evt)
e.cancelBubble = true;
e.returnValue = false;
return false;
+},
+
+touchevent: function(e)
+{
+ return { pageX:e.pageX, pageY:e.pageY, offsetX:e.pageX - e.target.offsetLeft, offsetY:e.pageY - e.target.offsetTop, target:e.target, istouch:true };
}
};