From 5a398a99ef58859589f08c929bc0b344f89a2266 Mon Sep 17 00:00:00 2001 From: Robert Konigsberg Date: Tue, 24 May 2011 17:18:48 -0400 Subject: [PATCH] treatMouseOpAsClick requires two parameters, I didn't send them both all the time. --- dygraph.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dygraph.js b/dygraph.js index 3cd7c93..821ef84 100644 --- a/dygraph.js +++ b/dygraph.js @@ -1276,7 +1276,7 @@ Dygraph.Interaction.endPan = function(event, g, context) { if (regionWidth < 2 && regionHeight < 2 && g.lastx_ != undefined && g.lastx_ != -1) { - Dygraph.Interaction.treatMouseOpAsClick(g); + Dygraph.Interaction.treatMouseOpAsClick(g, context); } }; @@ -1385,7 +1385,7 @@ Dygraph.Interaction.endZoom = function(event, g, context) { if (regionWidth < 2 && regionHeight < 2 && g.lastx_ != undefined && g.lastx_ != -1) { - Dygraph.Interaction.treatMouseOpAsClick(g); + Dygraph.Interaction.treatMouseOpAsClick(g, context); } if (regionWidth >= 10 && context.dragDirection == Dygraph.HORIZONTAL) { -- 2.7.4