From ef0b205bc164b9cb9023e4c91e95bf4cdd4ab669 Mon Sep 17 00:00:00 2001 From: Robert Konigsberg Date: Fri, 8 Oct 2010 10:05:46 -0400 Subject: [PATCH] updated comment. --- dygraph.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dygraph.js b/dygraph.js index f70bfa9..001d224 100644 --- a/dygraph.js +++ b/dygraph.js @@ -810,9 +810,10 @@ Dygraph.prototype.createDragInterface_ = function() { var maxDate = minDate + dateRange; self.dateWindow_ = [minDate, maxDate]; - // if a y-axis as been defined then the y-axis scale is maintained. - // otherwise don't set a value window, thereby forcing automatic y-axis - // scaling. + + // y-axis scaling is automatic unless a valueRange is defiend or + // if the user zooms in on the y-axis. If neither is true, valueWindow + // will be null. if (self.valueWindow_) { var maxValue = draggingValue + (dragEndY / self.height_) * valueRange; var minValue = maxValue - valueRange; -- 2.7.4