summaryrefslogtreecommitdiff
path: root/www/ajax
diff options
context:
space:
mode:
authorStef Walter <stef@thewalter.net>2012-04-17 11:10:13 +0200
committerStef Walter <stef@thewalter.net>2012-04-17 11:10:13 +0200
commitc724920b9970582f400dbd09cd0aae6c1123d277 (patch)
treeffbceee61714b6099e32ebba5ae686718631ca8d /www/ajax
parent3b4a85e783bb448c5257d440f3fdb74f296e0a9a (diff)
Fix webkit support for dragging zoom
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 */