add animation, stop automatic slideshow when interacted with

This commit is contained in:
mxmehl committed 2024-02-01 23:52:53 +01:00
1 parent 132828389b
commit 8c1546ef7f
3 files changed
+22 -2

No files matched your search

+3
View File
@@ -27,6 +27,9 @@ function moveLightboxItem(id, n) {
// Next/previous controls for slideshow
function moveSlideshowItem(id, n) {
showItem(slideshow_baseid, id, imageIndex[id] += n, ".snap-image");
// Kill automatic slideshow once the slideshow has been moved
clearInterval(autoSlideshow);
}
// In the slideshow or lightbox, make a specific image visible, make others hidden