From: Robert Konigsberg Date: Fri, 8 Oct 2010 14:07:42 +0000 (-0400) Subject: Fixed bug which didn't allow panning unless you zoomed on x-axis only. Zooming on... X-Git-Tag: v1.0.0~613^2~10 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=313d2805c09364cc03c0cea81e6ece44ec98a29a;p=dygraphs.git Fixed bug which didn't allow panning unless you zoomed on x-axis only. Zooming on y-axis didn't enable panning. --- diff --git a/dygraph.js b/dygraph.js index 001d224..aea73ea 100644 --- a/dygraph.js +++ b/dygraph.js @@ -832,7 +832,7 @@ Dygraph.prototype.createDragInterface_ = function() { if (event.altKey || event.shiftKey) { // have to be zoomed in to pan. - if (!self.dateWindow_ && !self.valueRange_) return; + if (!self.dateWindow_ && !self.valueWindow_) return; isPanning = true; var xRange = self.xAxisRange();