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 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 }; }, |