Skip to content

Commit

Permalink
fix brushing loop (#5499)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpcunningh committed Feb 1, 2020
1 parent baad198 commit 6045547
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/client/chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -602,8 +602,6 @@ function init (client, d3, $) {
};

function scrollUpdate () {
scrolling = false;

var nowDate = scrollNow;

var currentBrushExtent = scrollBrushExtent;
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 6045547

Please sign in to comment.