From c724920b9970582f400dbd09cd0aae6c1123d277 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Tue, 17 Apr 2012 11:10:13 +0200 Subject: Fix webkit support for dragging zoom --- www/ajax/rrdui.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'www/ajax') 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 */ -- cgit v1.2.3