Jelajahi Sumber

increase zoom scale

AykutSarac 3 tahun lalu
induk
melakukan
aae7fd25f2
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  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;