summaryrefslogtreecommitdiff
path: root/program/js/common.js
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2008-12-14 19:00:09 +0000
committeralecpl <alec@alec.pl>2008-12-14 19:00:09 +0000
commitcf6bc5d5fac6d7fe0db54ead2cc10436f8aeaa9a (patch)
tree445f27c5a7c6b150c7e9a736765763d64e045451 /program/js/common.js
parent2b5c123aadfa50f09a60b3d05c240932f9e5907a (diff)
#1485444: fix drag layer over an iframe
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 4b877bac3..5923989ec 100644
--- a/program/js/common.js
+++ b/program/js/common.js
@@ -158,6 +158,11 @@ get_mouse_pos: function(e)
mY += document.body.scrollTop;
}
+ if (e._offset) {
+ mX += e._offset.x;
+ mY += e._offset.y;
+ }
+
return { x:mX, y:mY };
},