From 8710edff2c70d9d012e2bd94fc150cca6941edbd Mon Sep 17 00:00:00 2001 From: alec Date: Sun, 14 Dec 2008 19:00:09 +0000 Subject: #1485444: fix drag layer over an iframe git-svn-id: https://svn.roundcube.net/trunk@2150 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 4b877bac3..5923989ec 100644 --- a/roundcubemail/program/js/common.js +++ b/roundcubemail/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 }; }, -- cgit v1.2.3