Module: check_mk
Branch: master
Commit: 3103768158886f91d0ebe9b2a86511c652036b5f
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=3103768158886f…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Mar 18 10:27:21 2016 +0100
Preparation for Firefox graphing fix
---
web/htdocs/js/checkmk.js | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/web/htdocs/js/checkmk.js b/web/htdocs/js/checkmk.js
index d249e49..149da71 100644
--- a/web/htdocs/js/checkmk.js
+++ b/web/htdocs/js/checkmk.js
@@ -245,6 +245,14 @@ function getTarget(event) {
return event.target ? event.target : event.srcElement;
}
+function get_event_offset_x(event) {
+ return event.offsetX == undefined ? event.layerX : event.offsetX;
+}
+
+function get_event_offset_y(event) {
+ return event.offsetY == undefined ? event.layerY : event.offsetY;
+}
+
function getButton(event) {
if (event.which == null)
/* IE case */