Browse Source

auto commit

master
jfinn 3 years ago
parent
commit
27b18b3423
1 changed files with 6 additions and 1 deletions
  1. 6
    1
      src/scene/zoom.ts

+ 6
- 1
src/scene/zoom.ts View File

@@ -45,7 +45,12 @@ Zoom,
45 45
 
46 46
 export const getNormalizedZoom = (zoom: number): NormalizedZoomValue => {
47 47
   // const normalizedZoom = parseFloat(zoom.toFixed(2));
48
-  const normalizedZoom = parseFloat(zoom.toFixed(4));
48
+  var fix = 2
49
+  if (window?.glob_dbg && "nZoomFixed" in window?.glob_dbg ){
50
+
51
+  }
52
+
53
+  const normalizedZoom = parseFloat(zoom.toFixed(fix));
49 54
   const clampedZoom = Math.max(0.1, Math.min(normalizedZoom, 10));
50 55
   clog("xcal_getNormalizedZoom",{clampedZoom,normalizedZoom,zoom})
51 56
   return clampedZoom as NormalizedZoomValue;

Loading…
Cancel
Save