This commit is contained in:
Yidadaa 2023-05-20 23:53:39 +08:00
parent f14b413b7c
commit 76e6957a8a

View File

@ -67,6 +67,8 @@ function useMaskGroup(masks: Mask[]) {
setGroups(newGroups);
};
computeGroup();
window.addEventListener("resize", computeGroup);
return () => window.removeEventListener("resize", computeGroup);
// eslint-disable-next-line react-hooks/exhaustive-deps