few more tweaks
authorDan Vanderkam <danvdk@gmail.com>
Wed, 15 Sep 2010 14:17:27 +0000 (10:17 -0400)
committerDan Vanderkam <danvdk@gmail.com>
Wed, 15 Sep 2010 14:17:27 +0000 (10:17 -0400)
dygraph.js
push-to-web.sh

index 4d2d3d0..b53dccf 100644 (file)
@@ -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_);
index e639317..3d65b1b 100755 (executable)
@@ -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/