From 2bb9a42d22b002a3c8b7b03b1237b7348eab3cee Mon Sep 17 00:00:00 2001 From: Benoit Girard Date: Fri, 9 Mar 2012 18:12:40 -0500 Subject: [PATCH] Fix a bug where on mouse down it would show the old select rect --- js/ui.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/ui.js b/js/ui.js index 2aa782ed51..b4256ca378 100644 --- a/js/ui.js +++ b/js/ui.js @@ -390,6 +390,8 @@ RangeSelector.prototype = { origY = e.pageY; if (this.setCapture) this.setCapture(); + // Reset the highlight rectangle + updateHiliteRectangle(e.pageX, e.pageY); e.preventDefault(); }, false); graph.addEventListener("mouseup", function(e) {