diff options
author | Stef Walter <stef@thewalter.net> | 2012-04-17 11:10:13 +0200 |
---|---|---|
committer | Stef Walter <stef@thewalter.net> | 2012-04-17 11:10:13 +0200 |
commit | c724920b9970582f400dbd09cd0aae6c1123d277 (patch) | |
tree | ffbceee61714b6099e32ebba5ae686718631ca8d | |
parent | 3b4a85e783bb448c5257d440f3fdb74f296e0a9a (diff) |
Fix webkit support for dragging zoom
-rw-r--r-- | www/ajax/rrdui.js | 6 |
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 */ |