carroussel thumbnial vertical manque changement visuel fleche thumbnail
This commit is contained in:
@@ -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' });
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user