From 10a1b973de5979bc4ece310083647ea706df8d84 Mon Sep 17 00:00:00 2001 From: "plebeius.eth" Date: Tue, 5 Sep 2023 15:14:52 +0200 Subject: [PATCH] fix catalog popups timeout --- src/components/views/AllCatalog.jsx | 2 +- src/components/views/Catalog.jsx | 12 ++++++------ src/components/views/SubscriptionsCatalog.jsx | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/components/views/AllCatalog.jsx b/src/components/views/AllCatalog.jsx index 487a1ae6..ff21b514 100755 --- a/src/components/views/AllCatalog.jsx +++ b/src/components/views/AllCatalog.jsx @@ -114,7 +114,7 @@ const CatalogPost = ({post}) => { }; if (isHoveringOnThread) { - const timeoutId = setTimeout(executeLayoutEffectLogic, 500); + const timeoutId = setTimeout(executeLayoutEffectLogic, 250); return () => clearTimeout(timeoutId); } diff --git a/src/components/views/Catalog.jsx b/src/components/views/Catalog.jsx index 8f2930b5..02325712 100755 --- a/src/components/views/Catalog.jsx +++ b/src/components/views/Catalog.jsx @@ -126,7 +126,7 @@ const CatalogPost = ({post}) => { }; if (isHoveringOnThread) { - const timeoutId = setTimeout(executeLayoutEffectLogic, 500); + const timeoutId = setTimeout(executeLayoutEffectLogic, 250); return () => clearTimeout(timeoutId); } @@ -353,7 +353,7 @@ const CatalogPost = ({post}) => { if (!hoverTimeoutId) { const timeoutId = setTimeout(() => { setIsHoveringOnThread("rules"); - }, 500); + }, 250); setHoverTimeoutId(timeoutId); } }}> @@ -421,7 +421,7 @@ const CatalogPost = ({post}) => { if (!hoverTimeoutId) { const timeoutId = setTimeout(() => { setIsHoveringOnThread("rules"); - }, 500); + }, 250); setHoverTimeoutId(timeoutId); } }}> @@ -455,7 +455,7 @@ const CatalogPost = ({post}) => { if (!hoverTimeoutId) { const timeoutId = setTimeout(() => { setIsHoveringOnThread("description"); - }, 500); + }, 250); setHoverTimeoutId(timeoutId); } }} @@ -478,7 +478,7 @@ const CatalogPost = ({post}) => { if (!hoverTimeoutId) { const timeoutId = setTimeout(() => { setIsHoveringOnThread("description"); - }, 500); + }, 250); setHoverTimeoutId(timeoutId); } }}> @@ -576,7 +576,7 @@ const CatalogPost = ({post}) => { if (!hoverTimeoutId) { const timeoutId = setTimeout(() => { setIsHoveringOnThread("description"); - }, 500); + }, 250); setHoverTimeoutId(timeoutId); } }}> diff --git a/src/components/views/SubscriptionsCatalog.jsx b/src/components/views/SubscriptionsCatalog.jsx index 7770d150..7c63673c 100755 --- a/src/components/views/SubscriptionsCatalog.jsx +++ b/src/components/views/SubscriptionsCatalog.jsx @@ -114,7 +114,7 @@ const CatalogPost = ({post}) => { }; if (isHoveringOnThread) { - const timeoutId = setTimeout(executeLayoutEffectLogic, 500); + const timeoutId = setTimeout(executeLayoutEffectLogic, 250); return () => clearTimeout(timeoutId); }