From ef15b331fb9f7eb31306e87b41a24085eb1f3694 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Sun, 9 Nov 2014 22:47:17 +0900 Subject: [PATCH] Allow value change events to happen even during animation --- client/scripts/grapher.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/client/scripts/grapher.js b/client/scripts/grapher.js index 346e55a..81cdf3e 100644 --- a/client/scripts/grapher.js +++ b/client/scripts/grapher.js @@ -278,10 +278,8 @@ } function clicked(event, x, y) { - if (_animation === null) { - var rect = _canvas.node.getBoundingClientRect(); - updateValue(indicatorToValue(y - rect.top)); - } + var rect = _canvas.node.getBoundingClientRect(); + updateValue(indicatorToValue(y - rect.top)); } this.update = function(data, scale) {