Browse Source

auto commit

master
jfinn 3 years ago
parent
commit
4750f6a27d
1 changed files with 6 additions and 0 deletions
  1. 6
    0
      src/actions/actionCanvas.tsx

+ 6
- 0
src/actions/actionCanvas.tsx View File

@@ -206,6 +206,12 @@ const zoomValueToFitBoundsOnViewport = (
206 206
   bounds: [number, number, number, number],
207 207
   viewportDimensions: { width: number; height: number },
208 208
 ) => {
209
+  // const _ZOOM_STEP
210
+  var _ZOOM_STEP = ZOOM_STEP
211
+  if (window?.glob_dev_fns?.get_zoom_step){
212
+    _ZOOM_STEP=window.glob_dev_fns.get_zoom_step()
213
+  }
214
+
209 215
   const [x1, y1, x2, y2] = bounds;
210 216
   const commonBoundsWidth = x2 - x1;
211 217
   const zoomValueForWidth = viewportDimensions.width / commonBoundsWidth;

Loading…
Cancel
Save