From 2e943b8baff9358afe66b540a5b78b5b3b8b81b0 Mon Sep 17 00:00:00 2001 From: Dan Vanderkam Date: Sun, 30 Jun 2013 23:42:49 -0400 Subject: [PATCH] move hairline to top on click --- extras/hairlines.js | 3 +++ 1 file changed, 3 insertions(+) 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({ -- 2.7.4