diff options
author | Bartek Szopka <bartek.szopka+github@gmail.com> | 2012-03-21 08:05:18 +0000 |
---|---|---|
committer | Bartek Szopka <bartek.szopka+github@gmail.com> | 2012-03-21 08:05:18 +0000 |
commit | c7f5771211b4f400ef8ae92204246a2537f24139 (patch) | |
tree | 275d4f0cd77a1aa08b4d1a835d07129166ac9f89 | |
parent | 2a9e9b859c40a3d6b4fcbb8b36670b4bc74427a4 (diff) | |
download | impress.js-c7f5771211b4f400ef8ae92204246a2537f24139.tar.gz |
fixing clicking links on active steps
-rw-r--r-- | js/impress.js | 4 |
1 files 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; } |