Fix missing object reference in interaction model.
authorRobert Konigsberg <konigsberg@google.com>
Thu, 2 Aug 2012 19:35:22 +0000 (15:35 -0400)
committerRobert Konigsberg <konigsberg@google.com>
Thu, 2 Aug 2012 19:35:22 +0000 (15:35 -0400)
dygraph-interaction-model.js

index 6f860c3..5185b3d 100644 (file)
@@ -337,7 +337,7 @@ Dygraph.Interaction.endZoom = function(event, g, context) {
                Math.max(context.dragStartY, context.dragEndY));
     context.cancelNextDblclick = true;
   } else {
-    if (zoomMoved) g.clearZoomRect_();
+    if (context.zoomMoved) g.clearZoomRect_();
   }
   context.dragStartX = null;
   context.dragStartY = null;