Fixed bug which didn't allow panning unless you zoomed on x-axis only. Zooming on...
authorRobert Konigsberg <konigsberg@google.com>
Fri, 8 Oct 2010 14:07:42 +0000 (10:07 -0400)
committerRobert Konigsberg <konigsberg@google.com>
Fri, 8 Oct 2010 14:07:42 +0000 (10:07 -0400)
dygraph.js

index 001d224..aea73ea 100644 (file)
@@ -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();