From e2b5f2bc4d88ab9be4fa4b100aaf7c7896e620a7 Mon Sep 17 00:00:00 2001 From: Dan Vanderkam Date: Wed, 15 Sep 2010 10:17:27 -0400 Subject: [PATCH] few more tweaks --- dygraph.js | 3 ++- push-to-web.sh | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dygraph.js b/dygraph.js index 4d2d3d0..b53dccf 100644 --- a/dygraph.js +++ b/dygraph.js @@ -803,7 +803,8 @@ Dygraph.prototype.createDragInterface_ = function() { var regionWidth = Math.abs(dragEndX - dragStartX); var regionHeight = Math.abs(dragEndY - dragStartY); - if (regionWidth < 2 && regionHeight < 2 && self.lastx_ != undefined) { + if (regionWidth < 2 && regionHeight < 2 && + self.lastx_ != undefined && self.lastx_ != -1) { // TODO(danvk): pass along more info about the points, e.g. 'x' if (self.attr_('clickCallback') != null) { self.attr_('clickCallback')(event, self.lastx_, self.selPoints_); diff --git a/push-to-web.sh b/push-to-web.sh index e639317..3d65b1b 100755 --- a/push-to-web.sh +++ b/push-to-web.sh @@ -8,7 +8,7 @@ site=$1 ./generate-combined.sh # Copy everything to the site. -scp tests/*.html tests/*.js tests/*.html $site/tests/ \ +scp tests/*.html tests/*.js tests/*.png $site/tests/ \ && \ scp dygraph*.js gadget.xml excanvas.js thumbnail.png docs/* $site/ -- 2.7.4