carroussel thumbnial vertical manque changement visuel fleche thumbnail

This commit is contained in:
2025-06-06 11:41:05 +02:00
parent 8933199a16
commit 63d8ef1e8a
5 changed files with 144 additions and 127 deletions
+3 -3
View File
@@ -253,11 +253,11 @@ function initCarousel({ mainImage, prevArrow, nextArrow, caption, thumbsContaine
const thumbNext = document.getElementById('thumbNext');
thumbPrev.addEventListener('click', () => {
thumbsContainer.scrollBy({ left: -150, behavior: 'smooth' });
thumbsContainer.scrollBy({ top: -150, behavior: 'smooth' });
});
thumbNext.addEventListener('click', () => {
thumbsContainer.scrollBy({ left: 150, behavior: 'smooth' });
thumbsContainer.scrollBy({ top: 150, behavior: 'smooth' });
});
}