From 313d2805c09364cc03c0cea81e6ece44ec98a29a Mon Sep 17 00:00:00 2001 From: Robert Konigsberg Date: Fri, 8 Oct 2010 10:07:42 -0400 Subject: [PATCH] Fixed bug which didn't allow panning unless you zoomed on x-axis only. Zooming on y-axis didn't enable panning. --- dygraph.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.7.4