From 629f444a02cc94ce4023c2f931acb9eb1ad547eb Mon Sep 17 00:00:00 2001 From: Braulio Date: Mon, 18 Nov 2024 17:56:11 +0100 Subject: [PATCH] hack --- src/pods/thumb-pages/components/thumb-page.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/pods/thumb-pages/components/thumb-page.tsx b/src/pods/thumb-pages/components/thumb-page.tsx index 507cc037..7539f787 100644 --- a/src/pods/thumb-pages/components/thumb-page.tsx +++ b/src/pods/thumb-pages/components/thumb-page.tsx @@ -58,13 +58,15 @@ export const ThumbPage: React.FunctionComponent = props => { React.useEffect(() => { if (!isVisible) return; - handleResizeAndForceRedraw(); + setTimeout(() => { + handleResizeAndForceRedraw(); + }, 100); }, [isVisible]); React.useEffect(() => { setTimeout(() => { handleResizeAndForceRedraw(); - }, 100); + }, 200); }, [shapes, activePageIndex]); React.useEffect(() => {