increase zoom scale

This commit is contained in:
AykutSarac 2022-04-26 14:57:58 +03:00
parent e9ab9ceb9d
commit aae7fd25f2

View File

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