Commit 375dcd95278c4caa358bc445a8f494fdab9a6224
1 parent
5c3d94f4
Exists in
master
and in
2 other branches
Fix a small graphical glitch with the cursor of time series when zooming.
Showing
2 changed files
with
4 additions
and
2 deletions
Show diff stats
web/static/js/swapp.js
... | ... | @@ -704,14 +704,15 @@ |
704 | 704 | this.svg.select('.x.axis').transition(t).call(this.xAxis); |
705 | 705 | this.svg.select('.y.axis').transition(t).call(this.yAxis); |
706 | 706 | this.path.transition(t).attr('d', this.line); |
707 | - return this.predictiveDataPath.transition(t).attr('d', this.line); | |
707 | + this.predictiveDataPath.transition(t).attr('d', this.line); | |
708 | 708 | } else { |
709 | 709 | console.debug("Applying zoom to hidden " + this + "…"); |
710 | 710 | this.svg.select('.x.axis').call(this.xAxis); |
711 | 711 | this.svg.select('.y.axis').call(this.yAxis); |
712 | 712 | this.path.attr('d', this.line); |
713 | - return this.predictiveDataPath.attr('d', this.line); | |
713 | + this.predictiveDataPath.attr('d', this.line); | |
714 | 714 | } |
715 | + return this.hideCursor(); | |
715 | 716 | }; |
716 | 717 | TimeSeries.prototype.showCursor = function(){ |
717 | 718 | return this.focus.style("display", null); | ... | ... |
web/static/js/swapp.ls