diff --git a/lib/client/chart.js b/lib/client/chart.js index 71d68bbc761..7a9b57bdd5d 100644 --- a/lib/client/chart.js +++ b/lib/client/chart.js @@ -602,8 +602,6 @@ function init (client, d3, $) { }; function scrollUpdate () { - scrolling = false; - var nowDate = scrollNow; var currentBrushExtent = scrollBrushExtent; @@ -669,6 +667,8 @@ function init (client, d3, $) { // console.log('Redrawing brush due to update: ', currentBrushExtent); chart.theBrush.call(chart.brush.move, currentBrushExtent.map(chart.xScale2)); + + scrolling = false; } chart.scroll = function scroll (nowDate) {