summaryrefslogtreecommitdiff
path: root/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'index.js')
-rw-r--r--index.js2
1 files changed, 2 insertions, 0 deletions
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';