We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0662219 commit afb0689Copy full SHA for afb0689
modules/hist/hist3d.mjs
@@ -752,12 +752,10 @@ function resize3D() {
752
x3d = xy3d * this.x3dscale,
753
y3d = xy3d * this.y3dscale;
754
755
- if ((Math.abs(x3d - this.size_x3d) > 0.1*this.size_z3d) || (Math.abs(y3d - this.size_y3d) > 0.1*this.size_z3d)) {
+ if ((Math.abs(x3d - this.size_x3d) > 0.2*this.size_z3d) || (Math.abs(y3d - this.size_y3d) > 0.2*this.size_z3d)) {
756
this.size_x3d = x3d;
757
this.size_y3d = y3d;
758
- const pos = getCameraDefaultPosition(this, true);
759
- if (pos)
760
- this.control.position0.copy(pos);
+ this.control.position0.copy(getCameraDefaultPosition(this, true));
761
return 1; // indicate significant resize
762
}
763
0 commit comments