aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBartek Szopka <bartek.szopka+github@gmail.com>2013-05-14 07:27:59 -0700
committerBartek Szopka <bartek.szopka+github@gmail.com>2013-05-14 07:27:59 -0700
commit610543c8395f89648c026eec27215e000462a66d (patch)
tree8f63352aa01e24f76ec0f1818a853f2fa7d02766
parent8e11d72f40a3ca9b39d23066393e6c4f485b1543 (diff)
parent950bc935e6c08890930cc8432b3609ec72144374 (diff)
downloadimpress.js-610543c8395f89648c026eec27215e000462a66d.tar.gz
Merge pull request #288 from jenil27/master
auto-resizing doesn't work when `active` class is used anythere on a page
-rw-r--r--js/impress.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/impress.js b/js/impress.js
index 224a5e2..6d83a71 100644
--- a/js/impress.js
+++ b/js/impress.js
@@ -784,7 +784,7 @@
// rescale presentation when window is resized
window.addEventListener("resize", throttle(function () {
// force going to active step again, to trigger rescaling
- api.goto( document.querySelector(".active"), 500 );
+ api.goto( document.querySelector(".step.active"), 500 );
}, 250), false);
}, false);