@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.js CHANGED
@@ -970,10 +970,10 @@ function createEngine({
970
970
  let scale = currentProjection.getScale(fovRad);
971
971
  const aspect = camera.aspect;
972
972
  if (currentConfig?.fitProjection) {
973
- if (aspect > 1) {
973
+ if (aspect >= 1) {
974
974
  scale /= aspect;
975
975
  } else {
976
- scale *= aspect;
976
+ scale *= aspect * aspect;
977
977
  }
978
978
  }
979
979
  globalUniforms.uScale.value = scale;