From dc2adb7ff1eeb2c070f4cdd22cd4d990505e1c01 Mon Sep 17 00:00:00 2001 From: thomasb Date: Fri, 28 May 2010 10:52:20 +0000 Subject: Make drag&drop work on iPads git-svn-id: https://svn.roundcube.net/trunk@3682 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/js/common.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'roundcubemail/program/js/common.js') 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 }; } }; -- cgit v1.2.3