@openglobus/openglobus-react 0.4.1 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -12272,8 +12272,10 @@ Object.freeze(Object.defineProperty({ __proto__: null, AtmosphereConfig: class e
12272
12272
  _handleMouseWheel() {
12273
12273
  let o = this.renderer.activeCamera, e = o.eye.clone();
12274
12274
  if (o.eye = o.eye.add(this.vel.scaleTo(this.dt)), o.isOrthographic) {
12275
- let t = e.distance(this._wheelPos), i = o.eye.distance(this._wheelPos) / t;
12276
- o.focusDistance, o.focusDistance = o.focusDistance * i;
12275
+ let t = e.distance(this._wheelPos), i = o.eye.distance(this._wheelPos) / t, r = o.focusDistance;
12276
+ o.focusDistance = o.focusDistance * i;
12277
+ let s = o.focusDistance - r * i;
12278
+ o.eye = o.eye.add(o.getForward().scale(s));
12277
12279
  }
12278
12280
  o.update();
12279
12281
  }