Skip to content
Snippets Groups Projects
Commit f023943a authored by Martin Leblanc's avatar Martin Leblanc Committed by Kevin Paxman
Browse files

ISTWCMS-5650: Add the click event to the small buttons in order to pause the...

ISTWCMS-5650: Add the click event to the small buttons in order to pause the slideshow when interacted with
parent c47852be
No related branches found
No related tags found
No related merge requests found
......@@ -99,7 +99,7 @@
// Pause carousel when clicking pagination dots.
document.addEventListener('click', function (event) {
if (event.target.matches('.flickity-page-dots')) {
if (event.target.matches('.flickity-page-dots .dot')) {
var banner = event.target.closest('.uw-carousel__banner');
if (banner) {
var pauseButton = banner.querySelector('.uw-pause');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment