diff options
Diffstat (limited to 'program/js/common.js')
-rw-r--r-- | program/js/common.js | 5 |
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 }; } }; |