From 375dcd95278c4caa358bc445a8f494fdab9a6224 Mon Sep 17 00:00:00 2001 From: Goutte Date: Mon, 12 Mar 2018 13:09:49 +0100 Subject: [PATCH] Fix a small graphical glitch with the cursor of time series when zooming. --- web/static/js/swapp.js | 5 +++-- web/static/js/swapp.ls | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) 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