diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-05-28 10:52:20 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-05-28 10:52:20 +0000 |
| commit | dc2adb7ff1eeb2c070f4cdd22cd4d990505e1c01 (patch) | |
| tree | 602ad93b2b56517e8422933aa3e9ffacc998e371 /roundcubemail/program/js/common.js | |
| parent | 9dd9adfcd7015db11ecb676bbc54b9f9c9abe535 (diff) | |
Make drag&drop work on iPads
git-svn-id: https://svn.roundcube.net/trunk@3682 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/js/common.js')
| -rw-r--r-- | roundcubemail/program/js/common.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/roundcubemail/program/js/common.js b/roundcubemail/program/js/common.js index 3defb6fb0..4a2a41cda 100644 --- a/roundcubemail/program/js/common.js +++ b/roundcubemail/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 }; } }; |
