Skip to content

Commit

Permalink
fix: zoom out
Browse files Browse the repository at this point in the history
  • Loading branch information
hamed-musallam committed Dec 13, 2023
1 parent 19d917c commit 76fb39b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/component/hooks/useToolsFunctions.ts
Expand Up @@ -46,7 +46,7 @@ export default function useToolsFunctions() {
if (debounceClickEventsRef.current.clicks.length === 0) {
dispatch({
type: 'FULL_ZOOM_OUT',
payload: { zoomType: 'FULL' },
payload: { zoomType: 'HORIZONTAL' },
});
}
const callback = lodashDebounce(() => {
Expand All @@ -63,7 +63,7 @@ export default function useToolsFunctions() {
debounceClickEventsRef.current.clicks = [];
dispatch({
type: 'FULL_ZOOM_OUT',
payload: {},
payload: { zoomType: 'FULL' },
});
}
}, [dispatch, debounceClickEventsRef]);
Expand Down
3 changes: 2 additions & 1 deletion src/component/toolbar/FunctionToolBar.tsx
Expand Up @@ -88,7 +88,8 @@ function FunctionToolBarInner({
},
{
id: 'zoomOut',
label: options.zoomOut.label,
label:
'Horizontal zoom out ( Press f ), Horizontal and Vertical zoom out, double click ( Press ff )',
onClick: handleFullZoomOut,
icon: <FaExpand />,
},
Expand Down

0 comments on commit 76fb39b

Please sign in to comment.