From: Dan Vanderkam Date: Wed, 15 Sep 2010 14:17:27 +0000 (-0400) Subject: few more tweaks X-Git-Tag: v1.0.0~654 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;ds=sidebyside;h=e2b5f2bc4d88ab9be4fa4b100aaf7c7896e620a7;p=dygraphs.git few more tweaks --- 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/