From 830ac1923d4871f0aea6a6ae62bae246b1e91eaf Mon Sep 17 00:00:00 2001 From: Muhammad Eko Date: Tue, 1 Oct 2024 15:32:41 +0700 Subject: [PATCH] progress --- src/lib/hooks/dimension.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/hooks/dimension.ts b/src/lib/hooks/dimension.ts index 1713a78..b184a19 100644 --- a/src/lib/hooks/dimension.ts +++ b/src/lib/hooks/dimension.ts @@ -15,8 +15,8 @@ function useDimensions(ref: RefObject) { height: ref.current?.offsetHeight ?? 0, }), () => JSON.stringify({ - width: window.innerWidth, - height: window.innerHeight + width: 0, + height: 0, }) ) return useMemo(() => JSON.parse(dimensions), [dimensions])