@project-skymap/library 0.7.4 → 0.7.5

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.cjs CHANGED
@@ -992,10 +992,10 @@ function createEngine({
992
992
  let scale = currentProjection.getScale(fovRad);
993
993
  const aspect = camera.aspect;
994
994
  if (currentConfig?.fitProjection) {
995
- if (aspect > 1) {
995
+ if (aspect >= 1) {
996
996
  scale /= aspect;
997
997
  } else {
998
- scale *= aspect;
998
+ scale *= aspect * aspect;
999
999
  }
1000
1000
  }
1001
1001
  globalUniforms.uScale.value = scale;