From 09168c6c47e381851cde5f84a36de8146e52779a Mon Sep 17 00:00:00 2001 From: mattkae Date: Sun, 13 Feb 2022 11:59:50 -0500 Subject: Fixing carousel --- index.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'index.js') diff --git a/index.js b/index.js index acdbe49..d6a4d6e 100644 --- a/index.js +++ b/index.js @@ -68,6 +68,8 @@ function runCarousel() { } else { image.style.opacity = 1; } + + image.style.pointerEvents = image.style.opacity > 0 ? 'all' : 'none'; } rightButton.style.visibility = (carouselPosition === numImages - 1) ? 'hidden' : 'visible'; -- cgit v1.2.1