From c7f5771211b4f400ef8ae92204246a2537f24139 Mon Sep 17 00:00:00 2001 From: Bartek Szopka Date: Wed, 21 Mar 2012 08:05:18 +0000 Subject: [PATCH] fixing clicking links on active steps --- js/impress.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }