From: Dan Vanderkam Date: Mon, 1 Jul 2013 03:42:49 +0000 (-0400) Subject: move hairline to top on click X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=2e943b8baff9358afe66b540a5b78b5b3b8b81b0;p=dygraphs.git move hairline to top on click --- diff --git a/extras/hairlines.js b/extras/hairlines.js index 255edd5..5252026 100644 --- a/extras/hairlines.js +++ b/extras/hairlines.js @@ -121,6 +121,9 @@ hairlines.prototype.createHairline = function(props) { self.hairlineWasDragged(h, event, ui); } // TODO(danvk): set cursor here + }) + .on('click', function() { + self.moveHairlineToTop(h); }); h = $.extend({