Explorar el Código

increase zoom scale

AykutSarac hace 3 años
padre
commit
aae7fd25f2
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/reducer/reducer.ts

+ 2 - 2
src/reducer/reducer.ts

@@ -58,7 +58,7 @@ export const useConfigReducer: React.Reducer<AppConfig, ReducerAction> = (
       state.settings.zoomPanPinch?.setTransform(
         state.settings.zoomPanPinch?.state.positionX,
         state.settings.zoomPanPinch?.state.positionY,
-        state.settings.zoomPanPinch?.state.scale + 0.2
+        state.settings.zoomPanPinch?.state.scale + 0.4
       );
       return state;
 
@@ -66,7 +66,7 @@ export const useConfigReducer: React.Reducer<AppConfig, ReducerAction> = (
       state.settings.zoomPanPinch?.setTransform(
         state.settings.zoomPanPinch?.state.positionX,
         state.settings.zoomPanPinch?.state.positionY,
-        state.settings.zoomPanPinch?.state.scale - 0.2
+        state.settings.zoomPanPinch?.state.scale - 0.4
       );
       return state;