@openglobus/openglobus-react 0.4.0 → 0.4.1
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 +2 -4
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +1 -1
- package/dist/index.umd.cjs.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -12272,10 +12272,8 @@ 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 * i;
|
|
12277
|
-
let s = o.focusDistance / i - r;
|
|
12278
|
-
o.eye = o.eye.add(o.getForward().scale(s));
|
|
12275
|
+
let t = e.distance(this._wheelPos), i = o.eye.distance(this._wheelPos) / t;
|
|
12276
|
+
o.focusDistance, o.focusDistance = o.focusDistance * i;
|
|
12279
12277
|
}
|
|
12280
12278
|
o.update();
|
|
12281
12279
|
}
|