From 419c1fbc2f0b07af7ab251b988a556cffa700520 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Sat, 21 Jan 2006 01:08:30 +0000 Subject: Fix range problem with zoom in. --- html/rrdui.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'html') diff --git a/html/rrdui.js b/html/rrdui.js index e61f545..bfb3cf3 100644 --- a/html/rrdui.js +++ b/html/rrdui.js @@ -263,7 +263,7 @@ function zoomGraphSelect(zoom) /* Limit it to the right range */ var range = zoom._img.width - GRAPH_MARGIN_RIGHT - GRAPH_MARGIN_LEFT; start = start < left ? 0 : start - left; - end = end > range ? range : end - left; + end = end - left > range ? range : end - left; /* Compute the ratio pixels:time */ var ratio = (zoom._img._tend - zoom._img._tbeg) / range; -- cgit v1.2.3