Merge branch 'master' of https://github.com/kberg/dygraphs
authorDan Vanderkam <dan@dygraphs.com>
Thu, 31 Mar 2011 15:40:05 +0000 (11:40 -0400)
committerDan Vanderkam <dan@dygraphs.com>
Thu, 31 Mar 2011 15:40:05 +0000 (11:40 -0400)
dygraph.js
tests/zoom.html

index 85ab1a9..1b8d8c7 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 a79e141..65f23a4 100644 (file)
@@ -35,7 +35,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>