1
mirror of https://github.com/xitanggg/open-resume synced 2024-11-03 09:19:21 +01:00

Fix unable to scale manually on first click

This commit is contained in:
azmy60 2023-06-28 15:24:48 +07:00 committed by Xitang Zhao
parent 36a7f9c4e9
commit 3d5841dc15

View File

@ -48,9 +48,8 @@ export const useSetDefaultScale = ({
setScale(defaultScale);
};
setDefaultScale();
if (scaleOnResize) {
setDefaultScale();
window.addEventListener("resize", setDefaultScale);
}