From: Robert Konigsberg Date: Fri, 8 Oct 2010 14:05:46 +0000 (-0400) Subject: updated comment. X-Git-Tag: v1.0.0~613^2~11 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=ef0b205bc164b9cb9023e4c91e95bf4cdd4ab669;p=dygraphs.git updated comment. --- 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;