Skip to content

Commit

Permalink
Merge pull request #12 from nightscout/dev
Browse files Browse the repository at this point in the history
fix brushing loop (nightscout#5499)
  • Loading branch information
yeagerm authored Feb 1, 2020
2 parents bd8cffe + 6045547 commit 311c601
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 311c601

Please sign in to comment.