Merge pull request #288 from jenil27/master

auto-resizing doesn't work when `active` class is used anythere on a page
This commit is contained in:
Bartek Szopka
2013-05-14 07:27:59 -07:00

View File

@@ -784,7 +784,7 @@
// rescale presentation when window is resized // rescale presentation when window is resized
window.addEventListener("resize", throttle(function () { window.addEventListener("resize", throttle(function () {
// force going to active step again, to trigger rescaling // force going to active step again, to trigger rescaling
api.goto( document.querySelector(".active"), 500 ); api.goto( document.querySelector(".step.active"), 500 );
}, 250), false); }, 250), false);
}, false); }, false);