summaryrefslogtreecommitdiff
path: root/www/ajax
diff options
context:
space:
mode:
Diffstat (limited to 'www/ajax')
-rw-r--r--www/ajax/rrdui.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/www/ajax/rrdui.js b/www/ajax/rrdui.js
index 17faf87..8984b33 100644
--- a/www/ajax/rrdui.js
+++ b/www/ajax/rrdui.js
@@ -284,9 +284,9 @@ function autoScroll(img)
function zoomGraphStart(evt)
{
/* COMPAT: In IE the left button is 1, Mozilla is 0 */
- var lbutton = gwindow.event ? 1 : 0;
-
- if(evt.button != lbutton)
+ if (evt.which == null && evt.button != 1)
+ return;
+ if (evt.which != null && evt.button != 0)
return;
/* COMPAT: Target is handled differently in Internet nastiness */