add animation, stop automatic slideshow when interacted with

This commit is contained in:
2024-02-01 23:52:53 +01:00
parent 132828389b
commit 8c1546ef7f
3 changed files with 22 additions and 2 deletions

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