Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
update timeout so the the image hovers more consistently
  • Loading branch information
mirnawong1 authored Jan 22, 2024
1 parent 9672b61 commit f7b9968
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/src/components/lightbox/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit f7b9968

Please sign in to comment.