diff --git a/js/impress.js b/js/impress.js index 5dd20f3..f68b570 100644 --- a/js/impress.js +++ b/js/impress.js @@ -604,8 +604,8 @@ // delegated handler for clicking on step elements document.addEventListener("click", function ( event ) { var target = event.target; - // find closest step element - while ( !target.classList.contains("step") && + // find closest step element that is not active + while ( !(target.classList.contains("step") && !target.classList.contains("active")) && (target !== document.documentElement) ) { target = target.parentNode; }