Bug in panEdgeFraction -- release prior values so that you can unset the pan edge...
authorRobert Konigsberg <konigsberg@google.com>
Thu, 31 Mar 2011 15:38:15 +0000 (11:38 -0400)
committerRobert Konigsberg <konigsberg@google.com>
Thu, 31 Mar 2011 15:38:15 +0000 (11:38 -0400)
dygraph.js
tests/zoom.html

index 1f188e2..be1cecb 100644 (file)
@@ -1161,6 +1161,8 @@ Dygraph.endPan = function(event, g, context) {
   context.initialLeftmostDate = null;
   context.dateRange = null;
   context.valueRange = null;
+  context.boundedDates = null;
+  context.boundedValues = null;
 }
 
 // Called in response to an interaction model operation that
index 483a1ce..6073a33 100644 (file)
@@ -33,7 +33,7 @@
       <br> <br>
       <input type="button" value="Unzoom" onclick="unzoomGraph()">&nbsp;
       <br> <br>
-      <input type="button" value="pan frame 0" onclick="panEdgeFraction(0)">&nbsp;
+      <input type="button" value="pan frame null" onclick="panEdgeFraction(null)">&nbsp;
       <input type="button" value="pan frame 0.1" onclick="panEdgeFraction(0.1)">&nbsp;
       <input type="button" value="pan frame 0.5" onclick="panEdgeFraction(0.5)">&nbsp;
       </p>