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:
parent
36a7f9c4e9
commit
3d5841dc15
@ -48,9 +48,8 @@ export const useSetDefaultScale = ({
|
||||
setScale(defaultScale);
|
||||
};
|
||||
|
||||
setDefaultScale();
|
||||
|
||||
if (scaleOnResize) {
|
||||
setDefaultScale();
|
||||
window.addEventListener("resize", setDefaultScale);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user