diff --git a/web/static/js/swapp.js b/web/static/js/swapp.js index dc7b926..f8e4562 100644 --- a/web/static/js/swapp.js +++ b/web/static/js/swapp.js @@ -704,14 +704,15 @@ this.svg.select('.x.axis').transition(t).call(this.xAxis); this.svg.select('.y.axis').transition(t).call(this.yAxis); this.path.transition(t).attr('d', this.line); - return this.predictiveDataPath.transition(t).attr('d', this.line); + this.predictiveDataPath.transition(t).attr('d', this.line); } else { console.debug("Applying zoom to hidden " + this + "…"); this.svg.select('.x.axis').call(this.xAxis); this.svg.select('.y.axis').call(this.yAxis); this.path.attr('d', this.line); - return this.predictiveDataPath.attr('d', this.line); + this.predictiveDataPath.attr('d', this.line); } + return this.hideCursor(); }; TimeSeries.prototype.showCursor = function(){ return this.focus.style("display", null); diff --git a/web/static/js/swapp.ls b/web/static/js/swapp.ls index 57c4cca..a75c108 100644 --- a/web/static/js/swapp.ls +++ b/web/static/js/swapp.ls @@ -642,6 +642,7 @@ export class TimeSeries @svg.select('.y.axis').call(@yAxis); @path.attr('d', @line) @predictiveDataPath.attr('d', @line) + @hideCursor() showCursor: -> @focus.style("display", null) -- libgit2 0.21.2