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 ce92f13 commit 2d68e1fCopy full SHA for 2d68e1f
modules/gpad/TFramePainter.mjs
@@ -1830,12 +1830,12 @@ class TFramePainter extends ObjectPainter {
1830
1831
let aname = name;
1832
if (this.swap_xy) aname = (name === 'x') ? 'y' : 'x';
1833
- const smin = `scale_${aname}min`,
1834
- smax = `scale_${aname}max`;
+ const smin = this[`scale_${aname}min`],
+ smax = this[`scale_${aname}max`];
1835
1836
- eps = (this[smax] - this[smin]) * 1e-7;
+ eps = (smax - smin) * 1e-7;
1837
1838
- if ((Math.abs(umin - this[smin]) > eps) || (Math.abs(umax - this[smax]) > eps)) {
+ if ((Math.abs(umin - smin) > eps) || (Math.abs(umax - smax) > eps)) {
1839
this[`zoom_${aname}min`] = umin;
1840
this[`zoom_${aname}max`] = umax;
1841
}
0 commit comments