Explorar o código

increase zoom scale

AykutSarac %!s(int64=3) %!d(string=hai) anos
pai
achega
aae7fd25f2
Modificáronse 1 ficheiros con 2 adicións e 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;