Skip to content

Commit 311c601

Browse files
authored
Merge pull request #12 from nightscout/dev
fix brushing loop (nightscout#5499)
2 parents bd8cffe + 6045547 commit 311c601

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/client/chart.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -602,8 +602,6 @@ function init (client, d3, $) {
602602
};
603603

604604
function scrollUpdate () {
605-
scrolling = false;
606-
607605
var nowDate = scrollNow;
608606

609607
var currentBrushExtent = scrollBrushExtent;
@@ -669,6 +667,8 @@ function init (client, d3, $) {
669667
// console.log('Redrawing brush due to update: ', currentBrushExtent);
670668

671669
chart.theBrush.call(chart.brush.move, currentBrushExtent.map(chart.xScale2));
670+
671+
scrolling = false;
672672
}
673673

674674
chart.scroll = function scroll (nowDate) {

0 commit comments

Comments
 (0)