diff options
author | alecpl <alec@alec.pl> | 2008-12-14 19:00:09 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2008-12-14 19:00:09 +0000 |
commit | cf6bc5d5fac6d7fe0db54ead2cc10436f8aeaa9a (patch) | |
tree | 445f27c5a7c6b150c7e9a736765763d64e045451 /program/js/common.js | |
parent | 2b5c123aadfa50f09a60b3d05c240932f9e5907a (diff) |
#1485444: fix drag layer over an iframe
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 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 }; }, |