From f7b99688801aaf43e2d067404d32c998f9498548 Mon Sep 17 00:00:00 2001 From: mirnawong1 <89008547+mirnawong1@users.noreply.github.com> Date: Mon, 22 Jan 2024 16:24:41 +0000 Subject: [PATCH] Update index.js update timeout so the the image hovers more consistently --- website/src/components/lightbox/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/src/components/lightbox/index.js b/website/src/components/lightbox/index.js index a846c51b150..875ed6ff063 100644 --- a/website/src/components/lightbox/index.js +++ b/website/src/components/lightbox/index.js @@ -12,7 +12,7 @@ function Lightbox({ src, collapsed = false, alignment = "center", alt = undefine if (isHovered && !isScrolling) { timeoutId = setTimeout(() => { setExpandImage(true); - }, 300); + }, 200); } return () => clearTimeout(timeoutId); }, [isHovered, isScrolling]);