We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef612f2 commit 7da0869Copy full SHA for 7da0869
scripts/JSRootPainter.js
@@ -5651,8 +5651,9 @@
5651
this.zoom_ymax = (hmax == null) ? this.ymax : hmax;
5652
}
5653
5654
- // apply selected user range
5655
- if ((this.histo.fXaxis.fFirst !== this.histo.fXaxis.fLast) &&
+ // apply selected user range if no other range selection was done
+ if (this.is_main_painter() && (this.zoom_xmin === this.zoom_xmax) &&
5656
+ (this.histo.fXaxis.fFirst !== this.histo.fXaxis.fLast) &&
5657
((this.histo.fXaxis.fFirst>1) || (this.histo.fXaxis.fLast <= this.nbinsx))) {
5658
this.zoom_xmin = this.histo.fXaxis.fFirst > 1 ? this.GetBinX(this.histo.fXaxis.fFirst-1) : this.xmin;
5659
this.zoom_xmax = this.histo.fXaxis.fLast <= this.nbinsx ? this.GetBinX(this.histo.fXaxis.fLast) : this.xmax;
0 commit comments