|
@@ -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;
|